Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Update actions running on deprecated Node v16 (#3801)

Dhruv Bhanushali68ffb8d4a3b4
diff --git a/.github/actions/get-changes/action.yml b/.github/actions/get-changes/action.yml
index a694d948a..b62d7762c 100644
--- a/.github/actions/get-changes/action.yml
+++ b/.github/actions/get-changes/action.yml
@@ -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
diff --git a/.github/actions/load-img/action.yml b/.github/actions/load-img/action.yml
index 3aefc264d..7e0e92447 100644
--- a/.github/actions/load-img/action.yml
+++ b/.github/actions/load-img/action.yml
@@ -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
@@ -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')
diff --git a/.github/actions/setup-env/action.yml b/.github/actions/setup-env/action.yml
index 44499dcc5..37043bf24 100644
--- a/.github/actions/setup-env/action.yml
+++ b/.github/actions/setup-env/action.yml
@@ -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`
@@ -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
diff --git a/.github/workflows-disabled/sentry-release.yml b/.github/workflows-disabled/sentry-release.yml
index cf504d896..313b496f0 100644
--- a/.github/workflows-disabled/sentry-release.yml
+++ b/.github/workflows-disabled/sentry-release.yml
@@ -8,7 +8,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+ - uses: actions/checkout@v4
- name: Sentry Release
uses: getsentry/[email protected]
env:
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml
index 0c350d082..3ec96cb52 100644
--- a/.github/workflows/ci_cd.yml
+++ b/.github/workflows/ci_cd.yml
@@ -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') }}
@@ -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`
@@ -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: |
@@ -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: |
@@ -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 }}
diff --git a/.github/workflows/migration_safety_warning.yml b/.github/workflows/migration_safety_warning.yml
index 6eac2cc4a..e5115cc3d 100644
--- a/.github/workflows/migration_safety_warning.yml
+++ b/.github/workflows/migration_safety_warning.yml
@@ -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 }}
@@ -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: |
diff --git a/.github/workflows/pr_limit_reminders.yml b/.github/workflows/pr_limit_reminders.yml
index 95b4e3d3b..1be1cf06c 100644
--- a/.github/workflows/pr_limit_reminders.yml
+++ b/.github/workflows/pr_limit_reminders.yml
@@ -14,7 +14,8 @@ 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 }}
@@ -22,7 +23,7 @@ jobs:
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
diff --git a/.github/workflows/project_thread_update_reminders.yml b/.github/workflows/project_thread_update_reminders.yml
index 293d780bd..1e705a247 100644
--- a/.github/workflows/project_thread_update_reminders.yml
+++ b/.github/workflows/project_thread_update_reminders.yml
@@ -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: |
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index aa4679b4b..532c7f2ab 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -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') }}
diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.yml
index 88b06b2d1..48643841b 100644
--- a/.github/workflows/renovate.yml
+++ b/.github/workflows/renovate.yml
@@ -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: