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

Updated actions:
- `actions/cache`
- `actions/github-script`
- `actions/setup-node`
- `bubkoo/welcome-action`
- `shivammathur/setup-php`
- `slackapi/slack-github-action`

See #55652.

git-svn-id: https://develop.svn.wordpress.org/trunk@53940 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jonathan Desrosiers 2022-08-24 16:30:31 +00:00
parent 6ab901eda4
commit 193406ab64
10 changed files with 21 additions and 21 deletions

View File

@ -67,7 +67,7 @@ jobs:
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
- name: Set up PHP
uses: shivammathur/setup-php@3eda58347216592f618bb1dff277810b6698e4ca # v2.19.1
uses: shivammathur/setup-php@e04e1d97f0c0481c6e1ba40f8a538454fe5d7709 # v2.21.2
with:
php-version: '7.4'
coverage: none
@ -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@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4
uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # v3.0.8
with:
path: .cache/phpcs.json
key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcs-cache-${{ hashFiles('**/composer.json', 'phpcs.xml.dist') }}
@ -142,7 +142,7 @@ jobs:
svn --version
- name: Install NodeJS
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
with:
node-version-file: '.nvmrc'
cache: npm

View File

@ -73,7 +73,7 @@ jobs:
locale -a
- name: Install NodeJS
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
with:
node-version-file: '.nvmrc'
cache: npm

View File

@ -67,7 +67,7 @@ jobs:
svn --version
- name: Install NodeJS
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
with:
node-version-file: '.nvmrc'
cache: npm

View File

@ -62,7 +62,7 @@ jobs:
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
- name: Set up PHP
uses: shivammathur/setup-php@3eda58347216592f618bb1dff277810b6698e4ca # v2.19.1
uses: shivammathur/setup-php@e04e1d97f0c0481c6e1ba40f8a538454fe5d7709 # v2.21.2
with:
php-version: '7.4'
coverage: none
@ -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@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4
uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # v3.0.8
with:
path: .cache/phpcompat.json
key: ${{ runner.os }}-date-${{ steps.get-date.outputs.date }}-phpcompat-cache-${{ hashFiles('**/composer.json', 'phpcompat.xml.dist') }}

View File

@ -112,7 +112,7 @@ jobs:
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
- name: Install NodeJS
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
with:
node-version-file: '.nvmrc'
cache: npm
@ -131,7 +131,7 @@ jobs:
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache Composer dependencies
uses: actions/cache@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4
uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # v3.0.8
env:
cache-name: cache-composer-dependencies
with:

View File

@ -53,7 +53,7 @@ jobs:
steps:
- name: Determine the status of the previous attempt
id: previous-attempt-result
uses: actions/github-script@7a5c598405937d486b0331594b5da2b14db670da # v6.1.0
uses: actions/github-script@d50f485531ba88479582bc2da03ff424389af5c1 # v6.1.1
with:
script: |
const workflow_run = await github.rest.actions.getWorkflowRun({
@ -116,7 +116,7 @@ jobs:
- name: Get the commit message
id: current-commit-message
uses: actions/github-script@7a5c598405937d486b0331594b5da2b14db670da # v6.1.0
uses: actions/github-script@d50f485531ba88479582bc2da03ff424389af5c1 # v6.1.1
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
with:
script: |
@ -150,7 +150,7 @@ jobs:
steps:
- name: Post failure notifications to Slack
uses: slackapi/slack-github-action@34c3fd73326693ef04728f8611669d918a2d781d # v1.19.0
uses: slackapi/slack-github-action@936158bbe252e9a6062e793ea4609642c966e302 # v1.21.0
with:
payload: ${{ needs.prepare.outputs.payload }}
env:
@ -166,7 +166,7 @@ jobs:
steps:
- name: Post failure notifications to Slack
uses: slackapi/slack-github-action@34c3fd73326693ef04728f8611669d918a2d781d # v1.19.0
uses: slackapi/slack-github-action@936158bbe252e9a6062e793ea4609642c966e302 # v1.21.0
with:
payload: ${{ needs.prepare.outputs.payload }}
env:
@ -182,7 +182,7 @@ jobs:
steps:
- name: Post success notifications to Slack
uses: slackapi/slack-github-action@34c3fd73326693ef04728f8611669d918a2d781d # v1.19.0
uses: slackapi/slack-github-action@936158bbe252e9a6062e793ea4609642c966e302 # v1.21.0
with:
payload: ${{ needs.prepare.outputs.payload }}
env:
@ -198,7 +198,7 @@ jobs:
steps:
- name: Post cancelled notifications to Slack
uses: slackapi/slack-github-action@34c3fd73326693ef04728f8611669d918a2d781d # v1.19.0
uses: slackapi/slack-github-action@936158bbe252e9a6062e793ea4609642c966e302 # v1.21.0
with:
payload: ${{ needs.prepare.outputs.payload }}
env:

View File

@ -87,7 +87,7 @@ jobs:
locale -a
- name: Install NodeJS
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.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@c3f1317a9e7b1ef106c153ac8c0f00fed3ddbc0d # v3.0.4
uses: actions/cache@fd5de65bc895cf536527842281bea11763fefd77 # v3.0.8
env:
cache-name: cache-composer-dependencies
with:

View File

@ -73,7 +73,7 @@ jobs:
svn --version
- name: Install NodeJS
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
with:
node-version-file: '.nvmrc'
cache: npm
@ -133,7 +133,7 @@ jobs:
svn --version
- name: Install NodeJS
uses: actions/setup-node@eeb10cff27034e7acf239c5d29f62154018672fd # v3.3.0
uses: actions/setup-node@2fddd8803e2f5c9604345a0b591c3020ee971a93 # v3.4.1
with:
node-version-file: '.nvmrc'
cache: npm

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@7a5c598405937d486b0331594b5da2b14db670da # v6.1.0
uses: actions/github-script@d50f485531ba88479582bc2da03ff424389af5c1 # v6.1.1
if: ${{ github.event_name == 'push' || github.event.schedule == '0 0 15 * *' || matrix.branch == '6.0' }}
with:
github-token: ${{ secrets.GHA_OLD_BRANCH_DISPATCH }}

View File

@ -12,7 +12,7 @@ jobs:
if: ${{ github.repository == 'WordPress/wordpress-develop' }}
steps:
- uses: bubkoo/welcome-action@8dbbac2540d155744c90e4e37da6b05ffc9c5e2c # v1.0.3
- uses: bubkoo/welcome-action@e3f444df06502502071d309411d01ba18f916ede # v1.0.3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FIRST_PR_COMMENT: >