File tree Expand file tree Collapse file tree 3 files changed +25
-6
lines changed Expand file tree Collapse file tree 3 files changed +25
-6
lines changed Original file line number Diff line number Diff line change 3535 github.event.workflow_run.conclusion == 'success'
3636 steps :
3737 - name : Download the PR number artifact
38- uses : actions/github-script@v6
38+ uses : actions/github-script@v7
3939 with :
4040 script : |
4141 let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
6767 with :
6868 labels : validated
6969 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 3434 pull-requests : write
3535 runs-on : ubuntu-latest
3636 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 "
3939 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:
2727 runs-on : ubuntu-latest
2828 steps :
2929 - name : Checkout repository
30- uses : actions/checkout@v3
30+ uses : actions/checkout@v4
3131
3232 - name : Setup Python and caching
33- uses : actions/setup-python@v4
33+ uses : actions/setup-python@v5
3434 with :
3535 python-version : " 3.9"
3636 cache : " pip"
You can’t perform that action at this time.
0 commit comments