From 23581c6d98711f80bbb85e98f445b2c83e35b213 Mon Sep 17 00:00:00 2001 From: Daniel La Rocque Date: Tue, 30 Jul 2024 16:51:32 -0400 Subject: [PATCH] Upgrade actions from master to v4 (#8400) The `actions/checkout` was being pulled from @master which is still at v2, since their default branch has changed from master to main in 2020. We should change the tag to pull from v4 instead. --- .github/workflows/canary-deploy.yml | 2 +- .github/workflows/check-changeset.yml | 2 +- .github/workflows/check-docs.yml | 2 +- .github/workflows/check-pkg-paths.yml | 2 +- .github/workflows/deploy-config.yml | 2 +- .github/workflows/e2e-test.yml | 2 +- .github/workflows/format.yml | 2 +- .github/workflows/merge-release-branch.yml | 2 +- .github/workflows/prerelease-manual-deploy.yml | 2 +- .github/workflows/release-log.yml | 2 +- .github/workflows/release-pr.yml | 2 +- .github/workflows/release-prod.yml | 2 +- .github/workflows/release-staging.yml | 2 +- .github/workflows/release-tweet.yml | 2 +- .github/workflows/test-changed-auth.yml | 4 ++-- .github/workflows/test-changed-fcm-integration.yml | 2 +- .github/workflows/test-changed-firestore-integration.yml | 2 +- .github/workflows/test-changed-firestore.yml | 2 +- .github/workflows/test-changed-misc.yml | 2 +- .github/workflows/test-changed.yml | 4 ++-- .github/workflows/test-firebase-integration.yml | 2 +- .github/workflows/update-api-reports.yml | 2 +- 22 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/canary-deploy.yml b/.github/workflows/canary-deploy.yml index 3b1a7854bb5..74364b49cd5 100644 --- a/.github/workflows/canary-deploy.yml +++ b/.github/workflows/canary-deploy.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 with: # Canary release script requires git history and tags. fetch-depth: 0 diff --git a/.github/workflows/check-changeset.yml b/.github/workflows/check-changeset.yml index b833050939d..76e6a7281e1 100644 --- a/.github/workflows/check-changeset.yml +++ b/.github/workflows/check-changeset.yml @@ -30,7 +30,7 @@ jobs: steps: - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 with: # This makes Actions fetch all Git history so check_changeset script can diff properly. fetch-depth: 0 diff --git a/.github/workflows/check-docs.yml b/.github/workflows/check-docs.yml index 6e8a84d2a2d..bfd812a1855 100644 --- a/.github/workflows/check-docs.yml +++ b/.github/workflows/check-docs.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 with: # get all history for the diff fetch-depth: 0 diff --git a/.github/workflows/check-pkg-paths.yml b/.github/workflows/check-pkg-paths.yml index 8ca54225e10..16cb2b8fc3f 100644 --- a/.github/workflows/check-pkg-paths.yml +++ b/.github/workflows/check-pkg-paths.yml @@ -23,7 +23,7 @@ jobs: steps: - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 with: # This makes Actions fetch all Git history so run-changed script can diff properly. fetch-depth: 0 diff --git a/.github/workflows/deploy-config.yml b/.github/workflows/deploy-config.yml index 3a2d935dd28..e3c536aaca0 100644 --- a/.github/workflows/deploy-config.yml +++ b/.github/workflows/deploy-config.yml @@ -31,7 +31,7 @@ jobs: steps: - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 with: # This makes Actions fetch all Git history so run-changed script can diff properly. fetch-depth: 0 diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 80a555f7840..36cdcb277fc 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -35,7 +35,7 @@ jobs: steps: - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 - name: Set up Node (20) uses: actions/setup-node@master with: diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 7434a9cab4c..9f298b81495 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 with: # get all history for the diff fetch-depth: 0 diff --git a/.github/workflows/merge-release-branch.yml b/.github/workflows/merge-release-branch.yml index 29a561cf605..19a3f6efd86 100644 --- a/.github/workflows/merge-release-branch.yml +++ b/.github/workflows/merge-release-branch.yml @@ -24,7 +24,7 @@ jobs: contents: write steps: - name: Checkout Release Branch - uses: actions/checkout@master + uses: actions/checkout@v4 with: ref: release - name: Get release version diff --git a/.github/workflows/prerelease-manual-deploy.yml b/.github/workflows/prerelease-manual-deploy.yml index 574f1f87f18..a4a96f12e61 100644 --- a/.github/workflows/prerelease-manual-deploy.yml +++ b/.github/workflows/prerelease-manual-deploy.yml @@ -30,7 +30,7 @@ jobs: steps: - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 with: # Canary release script requires git history and tags. fetch-depth: 0 diff --git a/.github/workflows/release-log.yml b/.github/workflows/release-log.yml index 780e3e97b52..570a1f70842 100644 --- a/.github/workflows/release-log.yml +++ b/.github/workflows/release-log.yml @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 - name: Setup Node.js 20.x uses: actions/setup-node@master diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index f0d2a1eacb2..b88b80b6d87 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -27,7 +27,7 @@ jobs: if: ${{ !startsWith(github.event.head_commit.message, 'Version Packages (#') }} steps: - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 with: # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits fetch-depth: 0 diff --git a/.github/workflows/release-prod.yml b/.github/workflows/release-prod.yml index 3c5b3380fcf..910938c3903 100644 --- a/.github/workflows/release-prod.yml +++ b/.github/workflows/release-prod.yml @@ -37,7 +37,7 @@ jobs: with: node-version: 20.x - name: Checkout release branch (with history) - uses: actions/checkout@master + uses: actions/checkout@v4 with: # Release script requires git history and tags. fetch-depth: 0 diff --git a/.github/workflows/release-staging.yml b/.github/workflows/release-staging.yml index 253cb2c0dba..ee8eee1c0d1 100644 --- a/.github/workflows/release-staging.yml +++ b/.github/workflows/release-staging.yml @@ -63,7 +63,7 @@ jobs: }) console.log(result) - name: Checkout current branch (with history) - uses: actions/checkout@master + uses: actions/checkout@v4 with: # Release script requires git history and tags. fetch-depth: 0 diff --git a/.github/workflows/release-tweet.yml b/.github/workflows/release-tweet.yml index edd2634637b..dffcbaeb0f3 100644 --- a/.github/workflows/release-tweet.yml +++ b/.github/workflows/release-tweet.yml @@ -33,7 +33,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 - name: Setup Node.js 20.x uses: actions/setup-node@master with: diff --git a/.github/workflows/test-changed-auth.yml b/.github/workflows/test-changed-auth.yml index 3c0ba9d02e4..67d16551b3e 100644 --- a/.github/workflows/test-changed-auth.yml +++ b/.github/workflows/test-changed-auth.yml @@ -52,7 +52,7 @@ jobs: run: | echo $CHROME_VERSION_NOTES=$CHROME_VERSION_MISMATCH_MESSAGE - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 with: # This makes Actions fetch all Git history so run-changed script can diff properly. fetch-depth: 0 @@ -84,7 +84,7 @@ jobs: sudo apt-get install wget - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 with: # This makes Actions fetch all Git history so run-changed script can diff properly. fetch-depth: 0 diff --git a/.github/workflows/test-changed-fcm-integration.yml b/.github/workflows/test-changed-fcm-integration.yml index affb4639b1b..464e3208ccc 100644 --- a/.github/workflows/test-changed-fcm-integration.yml +++ b/.github/workflows/test-changed-fcm-integration.yml @@ -34,7 +34,7 @@ jobs: sudo apt-get update sudo apt-get install google-chrome-stable - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 with: # This makes Actions fetch all Git history so run-changed script can diff properly. fetch-depth: 0 diff --git a/.github/workflows/test-changed-firestore-integration.yml b/.github/workflows/test-changed-firestore-integration.yml index 85e9c7e3eaa..94240156c78 100644 --- a/.github/workflows/test-changed-firestore-integration.yml +++ b/.github/workflows/test-changed-firestore-integration.yml @@ -29,7 +29,7 @@ jobs: steps: - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 with: # This makes Actions fetch all Git history so run-changed script can diff properly. fetch-depth: 0 diff --git a/.github/workflows/test-changed-firestore.yml b/.github/workflows/test-changed-firestore.yml index 9f241898e0e..e148d164909 100644 --- a/.github/workflows/test-changed-firestore.yml +++ b/.github/workflows/test-changed-firestore.yml @@ -33,7 +33,7 @@ jobs: steps: - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 with: # This makes Actions fetch all Git history so run-changed script can diff properly. fetch-depth: 0 diff --git a/.github/workflows/test-changed-misc.yml b/.github/workflows/test-changed-misc.yml index e189ff4fecf..8e59dbea835 100644 --- a/.github/workflows/test-changed-misc.yml +++ b/.github/workflows/test-changed-misc.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 with: # This makes Actions fetch all Git history so run-changed script can diff properly. fetch-depth: 0 diff --git a/.github/workflows/test-changed.yml b/.github/workflows/test-changed.yml index ac45286b0c8..7da82df4a26 100644 --- a/.github/workflows/test-changed.yml +++ b/.github/workflows/test-changed.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 with: # This makes Actions fetch all Git history so run-changed script can diff properly. fetch-depth: 0 @@ -57,7 +57,7 @@ jobs: steps: - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Node (20) diff --git a/.github/workflows/test-firebase-integration.yml b/.github/workflows/test-firebase-integration.yml index f6b1eb3c4b3..c545bc2e86e 100644 --- a/.github/workflows/test-firebase-integration.yml +++ b/.github/workflows/test-firebase-integration.yml @@ -27,7 +27,7 @@ jobs: steps: - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 with: # This makes Actions fetch all Git history so run-changed script can diff properly. fetch-depth: 0 diff --git a/.github/workflows/update-api-reports.yml b/.github/workflows/update-api-reports.yml index f49c548e3cc..c808000b5dc 100644 --- a/.github/workflows/update-api-reports.yml +++ b/.github/workflows/update-api-reports.yml @@ -25,7 +25,7 @@ jobs: contents: write steps: - name: Checkout Repo - uses: actions/checkout@master + uses: actions/checkout@v4 with: # checkout HEAD commit instead of merge commit ref: ${{ github.event.pull_request.head.ref }}