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.ymlindex 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-filtername: Check changed paths- uses: dorny/paths-filter@v2+ uses: dorny/paths-filter@v3with:filters: ./.github/filters.ymldiff --git a/.github/actions/load-img/action.yml b/.github/actions/load-img/action.ymlindex 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@v7with:script: |const { DefaultArtifactClient } = require('@actions/artifact')diff --git a/.github/actions/setup-env/action.yml b/.github/actions/setup-env/action.ymlindex 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 Pythonif: inputs.setup_python == 'true'- uses: actions/setup-python@v4+ uses: actions/setup-python@v5with:# Ensure that it matches `python_version` field in the following files:# - `automations/python/Pipfile`@@ -46,12 +46,12 @@ runs:# Node.js- name: Setup pnpmif: 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.jsif: inputs.setup_nodejs == 'true'- uses: actions/setup-node@v3+ uses: actions/setup-node@v4with:node-version-file: "package.json"cache: pnpmdiff --git a/.github/workflows-disabled/sentry-release.yml b/.github/workflows-disabled/sentry-release.ymlindex 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-lateststeps:- - uses: actions/checkout@v3+ - uses: actions/checkout@v4- name: Sentry Releaseuses: getsentry/[email protected]env:diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.ymlindex 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@v4with:path: ~/.cache/pre-commitkey: ${{ 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@v7with:# Also see# - list of stack filters: `.github/filters.yml`@@ -722,13 +722,14 @@ jobs:- playwrightsteps:- - uses: peter-evans/find-comment@v2+ - uses: peter-evans/find-comment@v3id: test-results-commentwith: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@v7if: steps.test-results-comment.outputs.comment-id != 0with: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@v4id: create-comment# Do not leave a comment on forksif: |@@ -890,14 +891,14 @@ jobs:force_orphan: truecname: docs.openverse.org- - uses: peter-evans/find-comment@v2+ - uses: peter-evans/find-comment@v3if: github.event_name == 'pull_request'id: final-preview-commentwith: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@v4if: 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.ymlindex 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@v3id: existing-warningwith: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@v7if: steps.existing-warning.outputs.comment-id != 0with: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@v4with:issue-number: ${{ github.event.pull_request.number }}body: |diff --git a/.github/workflows/pr_limit_reminders.yml b/.github/workflows/pr_limit_reminders.ymlindex 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@v7id: count-prsenv: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-prsdiff --git a/.github/workflows/project_thread_update_reminders.yml b/.github/workflows/project_thread_update_reminders.ymlindex 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@v7with:github-token: ${{ secrets.ACCESS_TOKEN }}script: |diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex 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@v4with:path: ~/.cache/pre-commitkey: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}diff --git a/.github/workflows/renovate.yml b/.github/workflows/renovate.ymlindex 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@v4if: github.event.inputs.repoCache != 'disabled'continue-on-error: truewith: