Skip to content

Commit

Permalink
Update actions running on deprecated Node v16 (#3801)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb authored Feb 19, 2024
1 parent 55562ea commit 68ffb8d
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/actions/get-changes/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ runs:
using: "composite"
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- id: paths-filter
name: Check changed paths
uses: dorny/paths-filter@v2
uses: dorny/paths-filter@v3
with:
filters: ./.github/filters.yml
4 changes: 2 additions & 2 deletions .github/actions/load-img/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runs:
using: "composite"
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup `pnpm`
uses: ./.github/actions/setup-env
Expand All @@ -30,7 +30,7 @@ runs:
pnpm install @actions/artifact -w
- name: Download images
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const { DefaultArtifactClient } = require('@actions/artifact')
Expand Down
12 changes: 6 additions & 6 deletions .github/actions/setup-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ runs:
steps:
# Just
- name: Setup just
uses: extractions/setup-just@v1
env:
GITHUB_TOKEN: ${{ github.token }}
uses: taiki-e/install-action@v2
with:
tool: just

# Python
- name: Setup Python
if: inputs.setup_python == 'true'
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
# Ensure that it matches `python_version` field in the following files:
# - `automations/python/Pipfile`
Expand All @@ -46,12 +46,12 @@ runs:
# Node.js
- name: Setup pnpm
if: inputs.setup_nodejs == 'true'
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
# Automatically reads `packageManager` field from root `package.json`.

- name: Setup Node.js
if: inputs.setup_nodejs == 'true'
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: "package.json"
cache: pnpm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows-disabled/sentry-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Sentry Release
uses: getsentry/action-release@v1.0.0
env:
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:
install_recipe: "node-install"

- name: Cache pre-commit envs
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:

steps:
- name: Apply stack labels
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
# Also see
# - list of stack filters: `.github/filters.yml`
Expand Down Expand Up @@ -722,13 +722,14 @@ jobs:
- playwright

steps:
- uses: peter-evans/find-comment@v2
- uses: peter-evans/find-comment@v3
id: test-results-comment
with:
issue-number: ${{ github.event.pull_request.number }}
body-includes: Playwright failure test results

- uses: actions/github-script@v6
- name: Delete existing results comment
uses: actions/github-script@v7
if: steps.test-results-comment.outputs.comment-id != 0
with:
script: |
Expand Down Expand Up @@ -758,7 +759,7 @@ jobs:
)
echo "$MESSAGE" | tee "$GITHUB_OUTPUT"
- uses: peter-evans/create-or-update-comment@v3
- uses: peter-evans/create-or-update-comment@v4
id: create-comment
# Do not leave a comment on forks
if: |
Expand Down Expand Up @@ -890,14 +891,14 @@ jobs:
force_orphan: true
cname: docs.openverse.org

- uses: peter-evans/find-comment@v2
- uses: peter-evans/find-comment@v3
if: github.event_name == 'pull_request'
id: final-preview-comment
with:
issue-number: ${{ github.event.pull_request.number }}
body-includes: Full-stack documentation

- uses: peter-evans/create-or-update-comment@v3
- uses: peter-evans/create-or-update-comment@v4
if: github.event_name == 'pull_request'
with:
issue-number: ${{ github.event.pull_request.number }}
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/migration_safety_warning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: peter-evans/find-comment@v2
- uses: peter-evans/find-comment@v3
id: existing-warning
with:
issue-number: ${{ github.event.pull_request.number }}
body-includes: This PR has migrations

- uses: actions/github-script@v6
- name: Delete existing migration warning comment
uses: actions/github-script@v7
if: steps.existing-warning.outputs.comment-id != 0
with:
github-token: ${{ secrets.ACCESS_TOKEN }}
Expand All @@ -35,7 +36,7 @@ jobs:
comment_id: ${{ steps.existing-warning.outputs.comment-id }},
})
- uses: peter-evans/create-or-update-comment@v3
- uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/pr_limit_reminders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ jobs:
should_alert: ${{ steps.count-prs.outputs.should_alert }}
steps:
- uses: actions/checkout@v4
- uses: actions/github-script@v6
- name: Count user PRs
uses: actions/github-script@v7
id: count-prs
env:
GH_SLACK_USERNAME_MAP: ${{ secrets.GH_SLACK_USERNAME_MAP }}
with:
github-token: ${{ secrets.ACCESS_TOKEN }}
script: |
const script = require('./automations/js/src/count_user_reviewable_prs.js')
await script({github,context,core})
await script({github, context, core})
send_message:
needs: analyze-user-prs
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/project_thread_update_reminders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
if: github.repository_owner == 'WordPress'
steps:
- uses: actions/checkout@v4
- uses: actions/github-script@v6
- name: Send reminders to update project threads
uses: actions/github-script@v7
with:
github-token: ${{ secrets.ACCESS_TOKEN }}
script: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
install_recipe: "node-install"

- name: Cache pre-commit envs
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: actions/cache@v3
- uses: actions/cache@v4
if: github.event.inputs.repoCache != 'disabled'
continue-on-error: true
with:
Expand Down

0 comments on commit 68ffb8d

Please sign in to comment.