-
-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (39 loc) · 1.23 KB
/
update.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
38
39
40
41
42
43
name: Update Deno Dependencies
on:
workflow_dispatch:
push:
branches:
- main
schedule:
- cron: "0 9 25 * *"
jobs:
update-deno-dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: denoland/setup-deno@v1
- name: run deno-udd
id: run-deno-udd
env:
NO_COLOR: true
run: |
UDD_RESULT=`deno run -A https://deno.land/x/udd/main.ts $(find . -type f | grep -E ".*\.([mc]?(ts|js)|(ts|js)x?)$" -)`
UDD_RESULT="${UDD_RESULT//'%'/'%25'}"
UDD_RESULT="${UDD_RESULT//$'\n'/'%0A'}"
UDD_RESULT="${UDD_RESULT//$'\r'/'%0D'}"
echo "::set-output name=UDD_RESULT::$UDD_RESULT"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: "chore(deps): update deno dependencies"
title: Update Deno Dependencies
body: |-
Some external modules are stale.
<details><summary>Details</summary><div>
```
${{ steps.run-deno-udd.outputs.UDD_RESULT }}
```
</div></details>
branch: deno-udd
author: GitHub <[email protected]>
delete-branch: true