File tree Expand file tree Collapse file tree 3 files changed +26
-7
lines changed Expand file tree Collapse file tree 3 files changed +26
-7
lines changed Original file line number Diff line number Diff line change 35
35
github.event.workflow_run.conclusion == 'success'
36
36
steps :
37
37
- name : Download the PR number artifact
38
- uses : actions/github-script@v6
38
+ uses : actions/github-script@v7
39
39
with :
40
40
script : |
41
41
let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
67
67
with :
68
68
labels : validated
69
69
number : ${{ steps.read.outputs.pr_number }}
70
+
71
+ - name : " Label the PR (replacement)"
72
+ uses : " actions/github-script@v7"
73
+ with :
74
+ script : |
75
+ github.rest.issues.addLabels({
76
+ owner: context.repo.owner,
77
+ repo: context.repo.repo,
78
+ issue_number: context.payload.pull_request.number,
79
+ name: 'validated'
80
+ });
81
+ if : github.event_name == 'pull_request'
Original file line number Diff line number Diff line change 34
34
pull-requests : write
35
35
runs-on : ubuntu-latest
36
36
steps :
37
- - name : Reset the PR label
38
- uses : actions-ecosystem/action-remove-labels@v1
37
+ - name : " Reset the PR label"
38
+ uses : " actions/github-script@v7 "
39
39
with :
40
- labels : validated
40
+ script : |
41
+ github.rest.issues.removeLabels({
42
+ owner: context.repo.owner,
43
+ repo: context.repo.repo,
44
+ issue_number: context.payload.pull_request.number,
45
+ name: 'validated'
46
+ });
47
+ if : github.event_name == 'pull_request'
Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ jobs:
27
27
runs-on : ubuntu-latest
28
28
steps :
29
29
- name : Checkout repository
30
- uses : actions/checkout@v3
30
+ uses : actions/checkout@v4
31
31
32
32
- name : Setup Python and caching
33
- uses : actions/setup-python@v4
33
+ uses : actions/setup-python@v5
34
34
with :
35
35
python-version : ' 3.9'
36
36
cache : ' pip'
77
77
echo $PR_NUMBER > ./pr/pr_number
78
78
79
79
- name : Upload the PR number
80
- uses : actions/upload-artifact@v3
80
+ uses : actions/upload-artifact@v4
81
81
with :
82
82
name : pr_number
83
83
path : pr/
You can’t perform that action at this time.
0 commit comments