mirror of
https://github.com/mas-cli/mas
synced 2025-02-16 12:38:30 +00:00
👔 Only run homebrew-core job for real releases
This commit is contained in:
parent
2ccdb03486
commit
d1be1d9d12
1 changed files with 6 additions and 0 deletions
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
@ -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 'masclibot@users.noreply.github.com'
|
||||
|
@ -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}
|
||||
|
|
Loading…
Add table
Reference in a new issue