-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (37 loc) · 1.24 KB
/
check-deno-dependencies.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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