From 623f2ff9e230b8e68571cb86e9adaab9ae7c1609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Sun, 8 Jan 2023 21:35:12 +0000 Subject: [PATCH] [CI] Update GitHub Actions workflows (#75337) * [CI] Update GitHub Actions workflows * [CI] Get rid of deprecated `set-output` --- .github/workflows/TagBotTriggers.yml | 6 +++--- .github/workflows/announce.yml | 4 ++-- .github/workflows/automerge.yml | 16 ++++++++-------- .github/workflows/automerge_staging.yml | 6 +++--- .github/workflows/breaking_change_feed.yml | 4 ++-- .github/workflows/ci.yml | 8 ++++---- .github/workflows/feed.yml | 4 ++-- .github/workflows/feed_manual_prs.yml | 4 ++-- .github/workflows/stale.yml | 2 +- .github/workflows/update_manifests.yml | 14 +++++++------- 10 files changed, 34 insertions(+), 34 deletions(-) diff --git a/.github/workflows/TagBotTriggers.yml b/.github/workflows/TagBotTriggers.yml index 7f2ad3467ec72ed..a1770375b439268 100644 --- a/.github/workflows/TagBotTriggers.yml +++ b/.github/workflows/TagBotTriggers.yml @@ -12,8 +12,8 @@ jobs: if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event.pull_request.merged runs-on: ubuntu-latest steps: - - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 - - run: println("::set-output name=manifest_version::$(VERSION.major).$(VERSION.minor)") + - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 + - run: write(ENV["GITHUB_OUTPUT"], "manifest_version=$(VERSION.major).$(VERSION.minor)") shell: julia --color=yes --project=.ci/ {0} id: manifest_version - run: echo "The manifest is .ci/Manifest.${{ steps.manifest_version.outputs.manifest_version }}.toml" @@ -23,7 +23,7 @@ jobs: - run: chmod 400 .ci/Project.toml - run: chmod 400 .ci/Manifest.toml - name: Cache artifacts - uses: actions/cache@1a9e2138d905efd099035b49d8b7a3888c653ca8 # v2.1.5 + uses: actions/cache@4723a57e26efda3a62cbde1812113b730952852d # v3.2.2 env: cache-name: cache-artifacts with: diff --git a/.github/workflows/announce.yml b/.github/workflows/announce.yml index 5a885fc0e719b71..9100f3ea747c8e8 100644 --- a/.github/workflows/announce.yml +++ b/.github/workflows/announce.yml @@ -13,10 +13,10 @@ jobs: if: ${{ github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'new package') }} runs-on: ubuntu-latest steps: - - uses: julia-actions/setup-julia@ce353a9bc8bd2a581d0533eb1d0ffc6f60563eb0 # v1.7.1 + - uses: julia-actions/setup-julia@b315a4d9881690c63d53fc0175b150a3776140bd # v1.9.0 with: version: 1.7.2 - - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 + - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - name: Send to Twitter shell: julia --color=yes {0} run: | diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 43e737b2baea272..4ee1dc99f9a90ff 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -25,11 +25,11 @@ jobs: arch: - x64 steps: - - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 - - uses: julia-actions/setup-julia@0b9b1d2cd24245f151902702d8e73b3f6b910014 # v1.6.0 + - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 + - uses: julia-actions/setup-julia@b315a4d9881690c63d53fc0175b150a3776140bd # v1.9.0 with: version: ${{ matrix.version }} - - run: println("::set-output name=manifest_version::$(VERSION.major).$(VERSION.minor)") + - run: write(ENV["GITHUB_OUTPUT"], "manifest_version=$(VERSION.major).$(VERSION.minor)") shell: julia --color=yes --project=.ci/ {0} id: manifest_version - run: echo "The manifest is .ci/Manifest.${{ steps.manifest_version.outputs.manifest_version }}.toml" @@ -39,7 +39,7 @@ jobs: - run: chmod 400 .ci/Project.toml - run: chmod 400 .ci/Manifest.toml - name: Cache artifacts - uses: actions/cache@1a9e2138d905efd099035b49d8b7a3888c653ca8 # v2.1.5 + uses: actions/cache@4723a57e26efda3a62cbde1812113b730952852d # v3.2.2 env: cache-name: cache-artifacts with: @@ -90,11 +90,11 @@ jobs: environment: stopwatch runs-on: ubuntu-latest steps: - - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 - - uses: julia-actions/setup-julia@0b9b1d2cd24245f151902702d8e73b3f6b910014 # v1.6.0 + - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 + - uses: julia-actions/setup-julia@b315a4d9881690c63d53fc0175b150a3776140bd # v1.9.0 with: version: '1' - - run: println("::set-output name=manifest_version::$(VERSION.major).$(VERSION.minor)") + - run: write(ENV["GITHUB_OUTPUT"], "manifest_version=$(VERSION.major).$(VERSION.minor)") shell: julia --color=yes --project=.ci/ {0} id: manifest_version - run: rm -rf .ci/Manifest.toml @@ -103,7 +103,7 @@ jobs: - run: chmod 400 .ci/Project.toml - run: chmod 400 .ci/Manifest.toml - name: Cache artifacts - uses: actions/cache@1a9e2138d905efd099035b49d8b7a3888c653ca8 # v2.1.5 + uses: actions/cache@4723a57e26efda3a62cbde1812113b730952852d # v3.2.2 env: cache-name: cache-artifacts with: diff --git a/.github/workflows/automerge_staging.yml b/.github/workflows/automerge_staging.yml index fe2300bc7f0f3cc..0e6467c60f19fba 100644 --- a/.github/workflows/automerge_staging.yml +++ b/.github/workflows/automerge_staging.yml @@ -25,8 +25,8 @@ jobs: arch: - x64 steps: - - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 - - uses: julia-actions/setup-julia@0b9b1d2cd24245f151902702d8e73b3f6b910014 # v1.6.0 + - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 + - uses: julia-actions/setup-julia@b315a4d9881690c63d53fc0175b150a3776140bd # v1.9.0 with: version: ${{ matrix.version }} # No Project/Manifest for staging run @@ -36,7 +36,7 @@ jobs: - run: rm -rf .ci/Manifest.toml - run: rm -rf .ci/Project.toml - name: Cache artifacts - uses: actions/cache@1a9e2138d905efd099035b49d8b7a3888c653ca8 # v2.1.5 + uses: actions/cache@4723a57e26efda3a62cbde1812113b730952852d # v3.2.2 env: cache-name: cache-artifacts with: diff --git a/.github/workflows/breaking_change_feed.yml b/.github/workflows/breaking_change_feed.yml index 390845146aaa8af..426af9b4ab985b9 100644 --- a/.github/workflows/breaking_change_feed.yml +++ b/.github/workflows/breaking_change_feed.yml @@ -10,10 +10,10 @@ jobs: if: ${{ (github.event.label.name == 'BREAKING' || github.event.label.name == 'zulip test') && github.repository == github.event.pull_request.head.repo.full_name }} runs-on: ubuntu-latest steps: - - uses: julia-actions/setup-julia@latest + - uses: julia-actions/setup-julia@b315a4d9881690c63d53fc0175b150a3776140bd # v1.9.0 with: version: 1.6.2 - - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - name: Collect Zulip info id: zulip shell: julia --color=yes {0} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc971bc96ef6c38..b9fd8c26fdbe91b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,12 +33,12 @@ jobs: arch: - x64 steps: - - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 - - uses: julia-actions/setup-julia@0b9b1d2cd24245f151902702d8e73b3f6b910014 # v1.6.0 + - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 + - uses: julia-actions/setup-julia@b315a4d9881690c63d53fc0175b150a3776140bd # v1.9.0 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - run: println("::set-output name=manifest_version::$(VERSION.major).$(VERSION.minor)") + - run: write(ENV["GITHUB_OUTPUT"], "manifest_version=$(VERSION.major).$(VERSION.minor)") shell: julia --color=yes --project=.ci/ {0} id: manifest_version - run: echo "The manifest is .ci/Manifest.${{ steps.manifest_version.outputs.manifest_version }}.toml" @@ -49,7 +49,7 @@ jobs: - run: chmod 400 .ci/Manifest.toml if: ${{ matrix.version != 'nightly' }} - name: Cache artifacts and packages - uses: actions/cache@1a9e2138d905efd099035b49d8b7a3888c653ca8 # v2.1.5 + uses: actions/cache@4723a57e26efda3a62cbde1812113b730952852d # v3.2.2 env: cache-name: cache-artifacts with: diff --git a/.github/workflows/feed.yml b/.github/workflows/feed.yml index 5bae89b78d4eac5..5b1b13b4fa921b6 100644 --- a/.github/workflows/feed.yml +++ b/.github/workflows/feed.yml @@ -10,10 +10,10 @@ jobs: if: ${{ github.event.label.name == 'new package' && github.repository == github.event.pull_request.head.repo.full_name }} runs-on: ubuntu-latest steps: - - uses: julia-actions/setup-julia@latest + - uses: julia-actions/setup-julia@b315a4d9881690c63d53fc0175b150a3776140bd # v1.9.0 with: version: 1.6.2 - - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - name: Send to Slack shell: julia --color=yes {0} run: | diff --git a/.github/workflows/feed_manual_prs.yml b/.github/workflows/feed_manual_prs.yml index 35289bf255a989f..ef71ed2f52bf063 100644 --- a/.github/workflows/feed_manual_prs.yml +++ b/.github/workflows/feed_manual_prs.yml @@ -9,10 +9,10 @@ jobs: if: (github.event.pull_request.user.login != 'JuliaRegistrator') && (github.event.pull_request.user.login != 'jlbuild') && (github.event.pull_request.user.login != 'JuliaTagBot') runs-on: ubuntu-latest steps: - - uses: julia-actions/setup-julia@latest + - uses: julia-actions/setup-julia@b315a4d9881690c63d53fc0175b150a3776140bd # v1.9.0 with: version: 1.6.2 - - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 + - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 - name: Send to Slack shell: julia --color=yes {0} run: | diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 7317c9b8b55ef53..0d1a344d226bdd6 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -7,7 +7,7 @@ jobs: stale: runs-on: ubuntu-latest steps: - - uses: actions/stale@3b3c3f03cd4d8e2b61e179ef744a0d20efbe90b4 # v3.0.18 + - uses: actions/stale@6f05e4244c9a0b2ed3401882b05d701dd0a7289b # v7.0.0 with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-pr-message: 'This pull request has been inactive for 30 days and will be automatically closed 7 days from now. If this pull request should not be closed, please either (1) fix the AutoMerge issues and re-trigger Registrator, which will automatically update the pull request, or (2) post a comment explaining why you would like this pull request to be manually merged. [noblock]' diff --git a/.github/workflows/update_manifests.yml b/.github/workflows/update_manifests.yml index b8c1daac014ecd3..da95e6534f2f459 100644 --- a/.github/workflows/update_manifests.yml +++ b/.github/workflows/update_manifests.yml @@ -31,12 +31,12 @@ jobs: - '1' - 'nightly' steps: - - uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 - - uses: julia-actions/setup-julia@0b9b1d2cd24245f151902702d8e73b3f6b910014 # v1.6.0 + - uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 + - uses: julia-actions/setup-julia@b315a4d9881690c63d53fc0175b150a3776140bd # v1.9.0 with: version: ${{ matrix.version }} arch: x64 - - run: println("::set-output name=manifest_version::$(VERSION.major).$(VERSION.minor)") + - run: write(ENV["GITHUB_OUTPUT"], "manifest_version=$(VERSION.major).$(VERSION.minor)") shell: julia --color=yes {0} id: manifest_version - run: echo "We will update the manifest at .ci/Manifest.${{ steps.manifest_version.outputs.manifest_version }}.toml" @@ -49,7 +49,7 @@ jobs: echo "The manifest file does not exist, so I will create a new manifest from scratch." fi - name: Cache artifacts - uses: actions/cache@1a9e2138d905efd099035b49d8b7a3888c653ca8 # v2.1.5 + uses: actions/cache@4723a57e26efda3a62cbde1812113b730952852d # v3.2.2 env: cache-name: cache-artifacts with: @@ -76,7 +76,7 @@ jobs: shell: julia --color=yes {0} - run: mv .ci/Manifest.toml .ci/Manifest.${{ steps.manifest_version.outputs.manifest_version }}.toml - run: git status - - uses: actions/upload-artifact@ee69f02b3dfdecd58bb31b4d133da38ba6fe3700 # v2.2.3 + - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 with: name: manifest_file_for_${{ steps.manifest_version.outputs.manifest_version }} path: .ci/Manifest.${{ steps.manifest_version.outputs.manifest_version }}.toml @@ -92,7 +92,7 @@ jobs: - run: rm -rf /tmp/manifest_updater - run: mkdir /tmp/manifest_updater - run: chmod 700 /tmp/manifest_updater - - uses: actions/download-artifact@158ca71f7c614ae705e79f25522ef4658df18253 # v2.0.9 + - uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2 with: path: /tmp/manifest_updater/download_artifacts - run: mv /tmp/manifest_updater/download_artifacts/manifest_file_for_*/Manifest.*.toml .ci @@ -101,7 +101,7 @@ jobs: - run: chmod 600 .ci/Project.toml - run: chmod 600 .ci/Manifest.*.toml - run: git status - - uses: peter-evans/create-pull-request@052fc72b4198ba9fbc81b818c6e1859f747d49a8 # v3.8.2 + - uses: peter-evans/create-pull-request@2b011faafdcbc9ceb11414d64d0573f37c774b04 # v4.2.3 with: token: ${{ secrets.TAGBOT_TOKEN }} delete-branch: true