Skip to content

check-deno-dependencies #809

check-deno-dependencies

check-deno-dependencies #809

name: check-deno-dependencies
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
update-dependencies:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Update dependencies
run: |
deno install -A -f -n udd https://deno.land/x/udd/main.ts
udd deps.ts --test="deno test -A --unstable"
udd tests/test_deps.ts --test="deno test -A --unstable"
- name: Create PR
id: create-pr
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.CREATE_PR_TOKEN }}
commit-message: 'chore: update dependencies'
title: 'chore: update dependencies'
body: |
chore: update dependencies
branch: update-dependencies
- name: Enable Pull Request Automerge
if: steps.create-pr.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@v2
with:
token: ${{ secrets.CREATE_PR_TOKEN }}
pull-request-number: ${{ steps.create-pr.outputs.pull-request-number }}
merge-method: squash