Build/Test Tools: Update third-party GitHub Actions.

This updates the following third-party actions to their latest versions:

- `actions/cache`
- `actions/checkout`
- `actions/setup-node`
- `actions/github-script`
- `slackapi/slack-github-action`

The latest versions of these actions fix the warnings that are being triggered after the deprecation of `set-output` and `save-state` on GitHub Actions.

For more information, see https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/.

See #56820.

git-svn-id: https://develop.svn.wordpress.org/trunk@54511 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonathan Desrosiers 2022-10-13 17:49:07 +00:00
parent 77b3243518
commit fe58b3e518
10 changed files with 36 additions and 36 deletions

View File

@ -64,7 +64,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: Set up PHP
uses: shivammathur/setup-php@e04e1d97f0c0481c6e1ba40f8a538454fe5d7709 # v2.21.2
@ -85,7 +85,7 @@ jobs:
run: echo "::set-output name=date::$(/bin/date -u --date='last Mon' "+%F")"
- name: Cache PHPCS scan cache
uses: actions/cache@56461b9eb0f8438fd15c7a9968e3c9ebb18ceff1 # v3.0.10
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
with:
path: .cache/phpcs.json
key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcs-cache-${{ hashFiles('**/composer.json', 'phpcs.xml.dist') }}
@ -140,7 +140,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: Log debug information
run: |
@ -150,7 +150,7 @@ jobs:
svn --version
- name: Install NodeJS
uses: actions/setup-node@969bd2663942d722d85b6a8626225850c2f7be4b # v3.5.0
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
with:
node-version-file: '.nvmrc'
cache: npm
@ -198,7 +198,7 @@ jobs:
steps:
- name: Dispatch workflow run
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
uses: actions/github-script@100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2
with:
retries: 2
retry-exempt-status-codes: 418

View File

@ -59,7 +59,7 @@ jobs:
echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: Log debug information
run: |
@ -73,7 +73,7 @@ jobs:
locale -a
- name: Install NodeJS
uses: actions/setup-node@969bd2663942d722d85b6a8626225850c2f7be4b # v3.5.0
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
with:
node-version-file: '.nvmrc'
cache: npm
@ -146,7 +146,7 @@ jobs:
steps:
- name: Dispatch workflow run
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
uses: actions/github-script@100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2
with:
retries: 2
retry-exempt-status-codes: 418

View File

@ -24,7 +24,7 @@ jobs:
steps:
- name: Rerun a workflow
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
uses: actions/github-script@100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2
with:
retries: 2
retry-exempt-status-codes: 418

View File

@ -57,7 +57,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: Log debug information
run: |
@ -67,7 +67,7 @@ jobs:
svn --version
- name: Install NodeJS
uses: actions/setup-node@969bd2663942d722d85b6a8626225850c2f7be4b # v3.5.0
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
with:
node-version-file: '.nvmrc'
cache: npm
@ -114,7 +114,7 @@ jobs:
steps:
- name: Dispatch workflow run
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
uses: actions/github-script@100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2
with:
retries: 2
retry-exempt-status-codes: 418

View File

@ -59,7 +59,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: Set up PHP
uses: shivammathur/setup-php@e04e1d97f0c0481c6e1ba40f8a538454fe5d7709 # v2.21.2
@ -80,7 +80,7 @@ jobs:
run: echo "::set-output name=date::$(/bin/date -u --date='last Mon' "+%F")"
- name: Cache PHP compatibility scan cache
uses: actions/cache@56461b9eb0f8438fd15c7a9968e3c9ebb18ceff1 # v3.0.10
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
with:
path: .cache/phpcompat.json
key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcompat-cache-${{ hashFiles('**/composer.json', 'phpcompat.xml.dist') }}
@ -134,7 +134,7 @@ jobs:
steps:
- name: Dispatch workflow run
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
uses: actions/github-script@100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2
with:
retries: 2
retry-exempt-status-codes: 418

View File

@ -106,10 +106,10 @@ jobs:
echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: Install NodeJS
uses: actions/setup-node@969bd2663942d722d85b6a8626225850c2f7be4b # v3.5.0
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
with:
node-version-file: '.nvmrc'
cache: npm
@ -128,7 +128,7 @@ jobs:
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache Composer dependencies
uses: actions/cache@56461b9eb0f8438fd15c7a9968e3c9ebb18ceff1 # v3.0.10
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
env:
cache-name: cache-composer-dependencies
with:
@ -216,7 +216,7 @@ jobs:
- name: Checkout the WordPress Test Reporter
if: ${{ github.repository == 'WordPress/wordpress-develop' && github.ref == 'refs/heads/trunk' && matrix.report }}
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
with:
repository: 'WordPress/phpunit-test-runner'
path: 'test-runner'
@ -255,7 +255,7 @@ jobs:
steps:
- name: Dispatch workflow run
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
uses: actions/github-script@100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2
with:
retries: 2
retry-exempt-status-codes: 418

View File

@ -53,7 +53,7 @@ jobs:
steps:
- name: Determine the status of the previous attempt
id: previous-attempt-result
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
uses: actions/github-script@100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2
with:
retries: 2
retry-exempt-status-codes: 418
@ -118,7 +118,7 @@ jobs:
- name: Get the commit message
id: current-commit-message
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
uses: actions/github-script@100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
with:
retries: 2
@ -154,7 +154,7 @@ jobs:
steps:
- name: Post failure notifications to Slack
uses: slackapi/slack-github-action@936158bbe252e9a6062e793ea4609642c966e302 # v1.21.0
uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844 # v1.23.0
with:
payload: ${{ needs.prepare.outputs.payload }}
env:
@ -170,7 +170,7 @@ jobs:
steps:
- name: Post failure notifications to Slack
uses: slackapi/slack-github-action@936158bbe252e9a6062e793ea4609642c966e302 # v1.21.0
uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844 # v1.23.0
with:
payload: ${{ needs.prepare.outputs.payload }}
env:
@ -186,7 +186,7 @@ jobs:
steps:
- name: Post success notifications to Slack
uses: slackapi/slack-github-action@936158bbe252e9a6062e793ea4609642c966e302 # v1.21.0
uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844 # v1.23.0
with:
payload: ${{ needs.prepare.outputs.payload }}
env:
@ -202,7 +202,7 @@ jobs:
steps:
- name: Post cancelled notifications to Slack
uses: slackapi/slack-github-action@936158bbe252e9a6062e793ea4609642c966e302 # v1.21.0
uses: slackapi/slack-github-action@007b2c3c751a190b6f0f040e47ed024deaa72844 # v1.23.0
with:
payload: ${{ needs.prepare.outputs.payload }}
env:

View File

@ -71,7 +71,7 @@ jobs:
echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: Log debug information
run: |
@ -87,7 +87,7 @@ jobs:
locale -a
- name: Install NodeJS
uses: actions/setup-node@969bd2663942d722d85b6a8626225850c2f7be4b # v3.5.0
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
with:
node-version-file: '.nvmrc'
cache: npm
@ -106,7 +106,7 @@ jobs:
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache Composer dependencies
uses: actions/cache@56461b9eb0f8438fd15c7a9968e3c9ebb18ceff1 # v3.0.10
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11
env:
cache-name: cache-composer-dependencies
with:
@ -209,7 +209,7 @@ jobs:
steps:
- name: Dispatch workflow run
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
uses: actions/github-script@100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2
with:
retries: 2
retry-exempt-status-codes: 418

View File

@ -62,7 +62,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: Log debug information
run: |
@ -73,7 +73,7 @@ jobs:
svn --version
- name: Install NodeJS
uses: actions/setup-node@969bd2663942d722d85b6a8626225850c2f7be4b # v3.5.0
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
with:
node-version-file: '.nvmrc'
cache: npm
@ -122,7 +122,7 @@ jobs:
if: ${{ github.repository == 'WordPress/wordpress-develop' }}
steps:
- name: Checkout repository
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- name: Log debug information
run: |
@ -133,7 +133,7 @@ jobs:
svn --version
- name: Install NodeJS
uses: actions/setup-node@969bd2663942d722d85b6a8626225850c2f7be4b # v3.5.0
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3.5.1
with:
node-version-file: '.nvmrc'
cache: npm
@ -188,7 +188,7 @@ jobs:
steps:
- name: Dispatch workflow run
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
uses: actions/github-script@100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2
with:
retries: 2
retry-exempt-status-codes: 418

View File

@ -67,7 +67,7 @@ jobs:
# Run all branches monthly, but only the currently supported one twice per month.
steps:
- name: Dispatch workflow run
uses: actions/github-script@7dff1a87643417cf3b95bb10b29f4c4bc60d8ebd # v6.3.1
uses: actions/github-script@100527700e8b29ca817ac0e0dfbfc5e8ff38edda # v6.3.2
if: ${{ github.event_name == 'push' || github.event.schedule == '0 0 15 * *' || matrix.branch == '6.0' }}
with:
retries: 2