Skip to content

Commit

Permalink
Adapt to setup-homebrew changes (Homebrew#140262)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 authored Jan 27, 2023
1 parent 93d473b commit c474421
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 73 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/bump-unversioned-casks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,6 @@ jobs:
with:
signing_key: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY }}

# Workaround until the `cache` action uses the changes from
# https://github.com/actions/toolkit/pull/580.
- name: Unlink workspace
run: |
mv "${GITHUB_WORKSPACE}" "${GITHUB_WORKSPACE}-link"
mkdir "${GITHUB_WORKSPACE}"
- name: Cache Homebrew Gems
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -80,13 +73,6 @@ jobs:
run: |
rm -f ~/bump-unversioned-casks-state.json
# Workaround until the `cache` action uses the changes from
# https://github.com/actions/toolkit/pull/580.
- name: Re-link workspace
run: |
rmdir "${GITHUB_WORKSPACE}"
mv "${GITHUB_WORKSPACE}-link" "${GITHUB_WORKSPACE}"
- name: Run brew bump-unversioned-casks ${{ github.repository }}
run: |
brew bump-unversioned-casks --state-file ~/bump-unversioned-casks-state.json --limit 15 '${{ github.repository }}'
Expand All @@ -95,10 +81,3 @@ jobs:
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN }}
HOMEBREW_GPG_PASSPHRASE: ${{ secrets.BREWTESTBOT_GPG_SIGNING_SUBKEY_PASSPHRASE }}
timeout-minutes: 20

# Workaround until the `cache` action uses the changes from
# https://github.com/actions/toolkit/pull/580.
- name: Unlink workspace
run: |
rm "${GITHUB_WORKSPACE}"
mkdir "${GITHUB_WORKSPACE}"
7 changes: 0 additions & 7 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ jobs:
with:
test-bot: false

# Workaround until the `cache` action uses the changes from
# https://github.com/actions/toolkit/pull/580.
- name: Unlink workspace
run: |
rm "${GITHUB_WORKSPACE}"
mkdir "${GITHUB_WORKSPACE}"
- name: Cache Homebrew Gems
id: cache
uses: actions/cache@v3
Expand Down
20 changes: 0 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,27 +92,13 @@ jobs:
brew unlink python && brew link --overwrite python
if: runner.os == 'macOS'

# Workaround until the `cache` action uses the changes from
# https://github.com/actions/toolkit/pull/580.
- name: Unlink workspace
run: |
mv "${GITHUB_WORKSPACE}" "${GITHUB_WORKSPACE}-link"
mkdir "${GITHUB_WORKSPACE}"
- name: Cache Homebrew Gems
uses: actions/cache@v3
with:
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
restore-keys: ${{ runner.os }}-rubygems-

# Workaround until the `cache` action uses the changes from
# https://github.com/actions/toolkit/pull/580.
- name: Re-link workspace
run: |
rmdir "${GITHUB_WORKSPACE}"
mv "${GITHUB_WORKSPACE}-link" "${GITHUB_WORKSPACE}"
- name: Install Homebrew Gems
id: gems
run: brew install-bundler-gems
Expand Down Expand Up @@ -260,12 +246,6 @@ jobs:
EOF
if: always() && steps.snapshot.outcome == 'success'

# Workaround until the `cache` action uses the changes from
# https://github.com/actions/toolkit/pull/580.
- name: Unlink workspace
run: |
rm "${GITHUB_WORKSPACE}"
mkdir "${GITHUB_WORKSPACE}"
conclusion:
name: conclusion
needs: test
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/publish-commit-casks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,6 @@ jobs:
with:
test-bot: false

# Workaround until the `cache` action uses the changes from
# https://github.com/actions/toolkit/pull/580.
- name: Unlink workspace
if: github.event.inputs.self_hosted != 'true'
run: |
mv "${GITHUB_WORKSPACE}" "${GITHUB_WORKSPACE}-link"
mkdir "${GITHUB_WORKSPACE}"
- name: Cache gems
if: github.event.inputs.self_hosted != 'true'
uses: actions/cache@v3
Expand All @@ -53,14 +45,6 @@ jobs:
key: ${{runner.os}}-rubygems-v2-${{steps.set-up-homebrew.outputs.gems-hash}}
restore-keys: ${{runner.os}}-rubygems-v2-

# Workaround until the `cache` action uses the changes from
# https://github.com/actions/toolkit/pull/580.
- name: Re-link workspace
if: github.event.inputs.self_hosted != 'true'
run: |
rmdir "${GITHUB_WORKSPACE}"
mv "${GITHUB_WORKSPACE}-link" "${GITHUB_WORKSPACE}"
- name: Install gems
if: github.event.inputs.self_hosted != 'true'
run: brew install-bundler-gems
Expand Down Expand Up @@ -107,11 +91,3 @@ jobs:
token: ${{secrets.HOMEBREW_GITHUB_PUBLIC_REPO_TOKEN}}
pr: ${{github.event.inputs.pull_request}}
message: "merge failed"

# Workaround until the `cache` action uses the changes from
# https://github.com/actions/toolkit/pull/580.
- name: Unlink workspace
if: github.event.inputs.self_hosted != 'true'
run: |
rm "${GITHUB_WORKSPACE}"
mkdir "${GITHUB_WORKSPACE}"
2 changes: 1 addition & 1 deletion cmd/lib/generate-matrix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
[]
end

tap = Tap.from_path(Dir.pwd)
tap = Tap.fetch(ENV.fetch("GITHUB_REPOSITORY"))

runner = CiMatrix.random_runner[:name]
syntax_job = {
Expand Down

0 comments on commit c474421

Please sign in to comment.