Skip to content

Commit

Permalink
πŸ‘” Only run homebrew-core job for real releases
Browse files Browse the repository at this point in the history
  • Loading branch information
phatblat committed Nov 3, 2024
1 parent 2ccdb03 commit d1be1d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,18 +221,23 @@ jobs:
homebrew-core:
runs-on: macos-15
needs: [start, prepare-release, homebrew-tap]
env:
PRE_RELEASE: ${{ needs.start.outputs.pre_release }}
steps:
- uses: actions/checkout@v4
if: env.PRE_RELEASE == 'false'
with:
# A fetch-depth of 0 includes all history and tags for script/version
fetch-depth: 0
ref: ${{ needs.start.outputs.release_branch }}

- name: πŸ‘’ Bootstrap
if: env.PRE_RELEASE == 'false'
run: |
script/bootstrap -f
- name: πŸ”§ Configure Git Author
if: env.PRE_RELEASE == 'false'
run: |
git config --global user.name 'masclibot'
git config --global user.email '[email protected]'
Expand All @@ -243,6 +248,7 @@ jobs:
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}
DRY_RUN: ${{ needs.start.outputs.dry_run }}
MAS_VERSION: ${{ needs.start.outputs.mas_version }}
if: env.PRE_RELEASE == 'false'
run: |
DRY_RUN=${DRY_RUN} \
script/brew_core_update ${MAS_VERSION}

0 comments on commit d1be1d9

Please sign in to comment.