File tree Expand file tree Collapse file tree 8 files changed +25
-15
lines changed Expand file tree Collapse file tree 8 files changed +25
-15
lines changed Original file line number Diff line number Diff line change 16
16
mkdir -p ./pr
17
17
printf ${{ github.event.number }} > ./pr/NUM
18
18
- name : Upload Diff
19
- uses : actions/upload-artifact@v2
19
+ uses : actions/upload-artifact@v3
20
20
with :
21
- name : pr
21
+ name : pr
22
22
path : ./pr
23
23
Original file line number Diff line number Diff line change 78
78
if : ${{ needs.test-pr.outputs.is_valid == 'true' }}
79
79
env :
80
80
NR : ${{ needs.test-pr.outputs.number }}
81
+ permissions :
82
+ contents : write
81
83
steps :
82
84
- name : ' Checkout md outputs'
83
85
uses : actions/checkout@v3
@@ -122,6 +124,8 @@ jobs:
122
124
if : ${{ needs.test-pr.outputs.is_valid == 'true' }}
123
125
env :
124
126
NR : ${{ needs.test-pr.outputs.number }}
127
+ permissions :
128
+ pull-requests : write
125
129
steps :
126
130
- name : ' Download comment artifact'
127
131
id : dl
@@ -151,6 +155,8 @@ jobs:
151
155
env :
152
156
NR : ${{ github.event.workflow_run.pull_requests[0].number }}
153
157
body : ${{ needs.test-pr.outputs.msg }}
158
+ permissions :
159
+ pull-requests : write
154
160
steps :
155
161
- name : ' Check for spoofing'
156
162
id : dl
Original file line number Diff line number Diff line change 13
13
if : >
14
14
github.event.workflow_run.event == 'pull_request' &&
15
15
github.event.workflow_run.conclusion == 'success'
16
+ permissions :
17
+ contents : write
16
18
steps :
17
19
- name : ' Download artifact'
18
20
uses : carpentries/actions/download-workflow-artifact@main
Original file line number Diff line number Diff line change 14
14
runs-on : ubuntu-latest
15
15
outputs :
16
16
is_valid : ${{ steps.check-pr.outputs.VALID }}
17
+ permissions :
18
+ pull-requests : write
17
19
steps :
18
20
- name : " Get Invalid Hashes File"
19
21
id : hash
Original file line number Diff line number Diff line change 25
25
- name : " Upload PR number"
26
26
id : upload
27
27
if : ${{ always() }}
28
- uses : actions/upload-artifact@v2
28
+ uses : actions/upload-artifact@v3
29
29
with :
30
30
name : pr
31
31
path : ${{ github.workspace }}/NR
@@ -107,20 +107,20 @@ jobs:
107
107
shell : Rscript {0}
108
108
109
109
- name : " Upload PR"
110
- uses : actions/upload-artifact@v2
110
+ uses : actions/upload-artifact@v3
111
111
with :
112
112
name : pr
113
113
path : ${{ env.PR }}
114
114
115
115
- name : " Upload Diff"
116
- uses : actions/upload-artifact@v2
116
+ uses : actions/upload-artifact@v3
117
117
with :
118
118
name : diff
119
119
path : ${{ env.CHIVE }}
120
120
retention-days : 1
121
-
121
+
122
122
- name : " Upload Build"
123
- uses : actions/upload-artifact@v2
123
+ uses : actions/upload-artifact@v3
124
124
with :
125
125
name : built
126
126
path : ${{ env.MD }}
Original file line number Diff line number Diff line change 1
- 0.11.11
1
+ 0.11.13
Original file line number Diff line number Diff line change 93
93
- name : Create Pull Request
94
94
id : cpr
95
95
if : ${{ steps.update.outputs.n > 0 }}
96
- uses : peter-evans /create-pull-request@v4.2.0
96
+ uses : carpentries /create-pull-request@main
97
97
with :
98
98
token : ${{ secrets.SANDPAPER_WORKFLOW }}
99
99
delete-branch : true
@@ -119,7 +119,7 @@ jobs:
119
119
```
120
120
121
121
- Auto-generated by [create-pull-request][1] on ${{ steps.update.outputs.date }}
122
-
123
- [1]: https://github.com/peter-evans /create-pull-request
122
+
123
+ [1]: https://github.com/carpentries /create-pull-request/tree/main
124
124
labels : " type: package cache"
125
125
draft : false
Original file line number Diff line number Diff line change @@ -43,11 +43,11 @@ jobs:
43
43
uses : carpentries/actions/update-workflows@main
44
44
with :
45
45
clean : ${{ github.event.inputs.clean }}
46
-
46
+
47
47
- name : Create Pull Request
48
48
id : cpr
49
49
if : " ${{ steps.update.outputs.new }}"
50
- uses : peter-evans /create-pull-request@v4.2.0
50
+ uses : carpentries /create-pull-request@main
51
51
with :
52
52
token : ${{ secrets.SANDPAPER_WORKFLOW }}
53
53
delete-branch : true
60
60
Update Workflows from sandpaper version ${{ steps.update.outputs.old }} -> ${{ steps.update.outputs.new }}
61
61
62
62
- Auto-generated by [create-pull-request][1] on ${{ steps.update.outputs.date }}
63
-
64
- [1]: https://github.com/peter-evans /create-pull-request
63
+
64
+ [1]: https://github.com/carpentries /create-pull-request/tree/main
65
65
labels : " type: template and tools"
66
66
draft : false
You can’t perform that action at this time.
0 commit comments