check-deno-dependencies #1005
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
- 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@v3 | |
with: | |
token: ${{ secrets.CREATE_PR_TOKEN }} | |
pull-request-number: ${{ steps.create-pr.outputs.pull-request-number }} | |
merge-method: squash |