File tree Expand file tree Collapse file tree 1 file changed +34
-10
lines changed Expand file tree Collapse file tree 1 file changed +34
-10
lines changed Original file line number Diff line number Diff line change 1- name : udd
1+ name : Update
22
33on :
44 schedule :
55 - cron : " 0 0 * * *"
6+ workflow_dispatch :
67
78jobs :
89 udd :
@@ -12,17 +13,40 @@ jobs:
1213 - uses : denoland/setup-deno@v1
1314 with :
1415 deno-version : " 1.x"
15- - run : |
16+ - name : Update dependencies
17+ run : |
1618 make tools
17- make update
19+ make update > ../output.txt
20+ env :
21+ NO_COLOR : 1
22+ - name : Read ../output.txt
23+ id : log
24+ uses : juliangruber/read-file-action@v1
25+ with :
26+ path : ../output.txt
27+ - name : Commit changes
28+ run : |
29+ git config user.name '${{ github.actor }}'
30+ git config user.email '${{ github.actor }}@users.noreply.github.com'
31+ git commit -a -F- <<EOM
32+ :package: Update Deno dependencies
33+
34+ Update dependencies by udd:
35+
36+ ${{ steps.log.outputs.content }}
37+
38+ EOM
1839 - uses : peter-evans/create-pull-request@v3
1940 with :
20- commit-message : " :package: Update deno dependencies"
21- title : " :package: Update deno dependencies"
41+ title : " :package: Update Deno dependencies"
2242 body : |
23- Automated updates by [deno-udd](https://github.com/hayd/deno-udd)
24- and [create-pull-request](https://github.com/peter-evans/create-pull-request)
25- GitHub action
26- branch : update-deno-dependencies
27- author :
GitHub <[email protected] > 43+ The output of `make update` is
44+
45+ ```
46+ ${{ steps.log.outputs.content }}
47+ ```
48+ labels : automation
49+ branch : automation/update-dependencies
50+ branch-suffix : timestamp
2851 delete-branch : true
52+ token : " ${{ secrets.PA_TOKEN }}"
You can’t perform that action at this time.
0 commit comments