Skip to content

Commit

Permalink
[CI] Update GitHub Actions workflows (#75337)
Browse files Browse the repository at this point in the history
* [CI] Update GitHub Actions workflows

* [CI] Get rid of deprecated `set-output`
  • Loading branch information
giordano authored Jan 8, 2023
1 parent 4b88044 commit 623f2ff
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 34 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/TagBotTriggers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/announce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/automerge_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/breaking_change_feed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/feed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/feed_manual_prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]'
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/update_manifests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 623f2ff

Please sign in to comment.