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
2
2
3
3
on :
4
4
schedule :
5
5
- cron : " 0 0 * * *"
6
+ workflow_dispatch :
6
7
7
8
jobs :
8
9
udd :
@@ -12,17 +13,40 @@ jobs:
12
13
- uses : denoland/setup-deno@v1
13
14
with :
14
15
deno-version : " 1.x"
15
- - run : |
16
+ - name : Update dependencies
17
+ run : |
16
18
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
18
39
- uses : peter-evans/create-pull-request@v3
19
40
with :
20
- commit-message : " :package: Update deno dependencies"
21
- title : " :package: Update deno dependencies"
41
+ title : " :package: Update Deno dependencies"
22
42
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 <noreply@github.com>
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
28
51
delete-branch : true
52
+ token : " ${{ secrets.PA_TOKEN }}"
You can’t perform that action at this time.
0 commit comments