1- # from https://zenn.dev/kawarimidoll/articles/c68204d248c107#設定ファイル
2- name : update-deno-dependencies
1+ # ported from https://github.com/jsr-core/unknownutil/blob/v3.18.1/.github/workflows/udd.yml and modified a bit
2+ name : Update
33
44on :
55 schedule :
66 - cron : " 0 0 * * *"
7+ workflow_dispatch :
78
89jobs :
910 udd :
1011 runs-on : ubuntu-latest
1112 steps :
12- - uses : actions/checkout@v2
13+ - uses : actions/checkout@v4
1314 - uses : denoland/setup-deno@v1
1415 with :
15- deno-version : " v1 .x"
16+ deno-version : " 1 .x"
1617 - name : Update dependencies
17- run : >
18- deno run --allow-net --allow-read --allow-write=deps/
19- --allow-run=deno https://deno.land/x/udd@0.8.2/main.ts deps/*.ts
20- --test="deno test --allow-read"
21- - name : Create Pull Request
22- uses : peter-evans/create-pull-request@v3
18+ run : |
19+ deno task upgrade > ../output.txt
20+ env :
21+ NO_COLOR : 1
22+ - name : Read ../output.txt
23+ id : log
24+ uses : juliangruber/read-file-action@v1
2325 with :
24- commit-message : " :arrow_up: update deno dependencies"
25- title : Update Deno Dependencies
26- body : >
27- Automated updates by [deno-udd](https://github.com/hayd/deno-udd)
28- and [create-pull-request](https://github.com/peter-evans/create-pull-request)
29- GitHub action
26+ path : ../output.txt
27+ - uses : peter-evans/create-pull-request@v6
28+ with :
29+ commit-message : " :package: Update Deno dependencies"
30+ title : " :package: Update Deno dependencies"
31+ body : |
32+ The output of `deno task update` is
33+
34+ ```
35+ ${{ steps.log.outputs.content }}
36+ ```
3037 branch : update-deno-dependencies
3138 author : GitHub <noreply@github.com>
32- delete-branch : true
39+ delete-branch : true
0 commit comments