Skip to content

Commit 48846ef

Browse files
committed
Update deprecated actions
Signed-off-by: Webster Mudge <[email protected]>
1 parent 91bd3c1 commit 48846ef

File tree

3 files changed

+26
-7
lines changed

3 files changed

+26
-7
lines changed

.github/workflows/label_pr.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
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({
@@ -67,3 +67,15 @@ jobs:
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'

.github/workflows/reset_pr.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,14 @@ jobs:
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'

.github/workflows/validate_pr.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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'
@@ -77,7 +77,7 @@ jobs:
7777
echo $PR_NUMBER > ./pr/pr_number
7878
7979
- name: Upload the PR number
80-
uses: actions/upload-artifact@v3
80+
uses: actions/upload-artifact@v4
8181
with:
8282
name: pr_number
8383
path: pr/

0 commit comments

Comments
 (0)