Skip to content

check-deno-dependencies #353

check-deno-dependencies

check-deno-dependencies #353

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@v2
with:
deno-version: v2.x
- name: Update dependencies
run: |
deno outdated --update --latest
deno test -A
- name: Create PR
id: create-pr
uses: peter-evans/create-pull-request@v7
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