Skip to content

udd-update-dependencies #884

udd-update-dependencies

udd-update-dependencies #884

Workflow file for this run

name: udd-update-dependencies
on:
workflow_dispatch:
schedule:
- cron: "42 19 * * *"
jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: 1.29.1
- name: Update dependencies
run: |
deno run -A https://deno.land/x/udd/main.ts supabase/functions/**/*.ts scripts/convert_deno_to_node.mjs
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
id: pr
with:
commit-message: "Update dependencies"
title: Update dependencies
body: >
Dependencies updated by [udd](https://github.com/hayd/deno-udd).
branch: deno-dependency-updates
author: GitHub <[email protected]>
delete-branch: true
- name: Retrieve commit sha
id: commit
run: |
echo "::set-output name=sha::$(git rev-parse HEAD)"
- name: Set commit status with pending
uses: Sibz/github-status-action@v1
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
context: "Basic tests"
state: "pending"
sha: ${{ steps.commit.outputs.sha }}
- name: Basic tests
id: test
continue-on-error: true
run: |
deno test --allow-read --allow-write supabase/functions/_test/*.ts
- name: Set commit status with outcome
uses: Sibz/github-status-action@v1
with:
authToken: ${{ secrets.GITHUB_TOKEN }}
context: "Basic tests"
description: "To run other CI actions close/reopen this PR"
state: ${{ steps.test.outcome }}
sha: ${{ steps.commit.outputs.sha }}