mirror of
https://github.com/mas-cli/mas
synced 2025-02-16 12:38:30 +00:00
🐛 Use script variable syntax
This commit is contained in:
parent
5b5ba9213a
commit
cfa3c70ef3
1 changed files with 13 additions and 13 deletions
26
.github/workflows/release.yml
vendored
26
.github/workflows/release.yml
vendored
|
@ -61,15 +61,15 @@ jobs:
|
||||||
env:
|
env:
|
||||||
RELEASE_BRANCH: ${{ needs.start.outputs.release_branch }}
|
RELEASE_BRANCH: ${{ needs.start.outputs.release_branch }}
|
||||||
run: |
|
run: |
|
||||||
git branch "${{ env.RELEASE_BRANCH }}"
|
git branch "${RELEASE_BRANCH}"
|
||||||
git switch "${{ env.RELEASE_BRANCH }}"
|
git switch "${RELEASE_BRANCH}"
|
||||||
|
|
||||||
- name: 🔖 Update version
|
- name: 🔖 Update version
|
||||||
env:
|
env:
|
||||||
MAS_VERSION: ${{ needs.start.outputs.mas_version }}
|
MAS_VERSION: ${{ needs.start.outputs.mas_version }}
|
||||||
RELEASE_COMMIT: ${{ needs.start.outputs.release_commit }}
|
RELEASE_COMMIT: ${{ needs.start.outputs.release_commit }}
|
||||||
run: |
|
run: |
|
||||||
script/version_bump "${{ env.MAS_VERSION }}" "${{ env.RELEASE_COMMIT }}"
|
script/version_bump "${MAS_VERSION}" "${RELEASE_COMMIT}"
|
||||||
|
|
||||||
- name: 💾 Commit changes
|
- name: 💾 Commit changes
|
||||||
env:
|
env:
|
||||||
|
@ -80,7 +80,7 @@ jobs:
|
||||||
"Homebrew/mas-tap.rb" \
|
"Homebrew/mas-tap.rb" \
|
||||||
"Sources/MasKit/Package.swift"
|
"Sources/MasKit/Package.swift"
|
||||||
git commit \
|
git commit \
|
||||||
--message="🔖 Version ${{ env.MAS_VERSION }}"
|
--message="🔖 Version ${MAS_VERSION}"
|
||||||
|
|
||||||
- name: ⤴️ Open PR
|
- name: ⤴️ Open PR
|
||||||
env:
|
env:
|
||||||
|
@ -90,9 +90,9 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
gh pr create \
|
gh pr create \
|
||||||
--base main \
|
--base main \
|
||||||
--head "${{ env.RELEASE_BRANCH }}" \
|
--head "${RELEASE_BRANCH}" \
|
||||||
--title "🔖 Version ${{ env.MAS_VERSION }}" \
|
--title "🔖 Version ${MAS_VERSION}" \
|
||||||
--body "This PR contains the changes from releasing version [${{ env.MAS_VERSION }}](https://github.com/mas-cli/mas/releases/tag/${{ env.MAS_VERSION }})."
|
--body "This PR contains the changes from releasing version [${MAS_VERSION}](https://github.com/mas-cli/mas/releases/tag/${MAS_VERSION})."
|
||||||
|
|
||||||
pkg-installer:
|
pkg-installer:
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
|
@ -123,7 +123,7 @@ jobs:
|
||||||
MAS_VERSION: ${{ needs.start.outputs.mas_version }}
|
MAS_VERSION: ${{ needs.start.outputs.mas_version }}
|
||||||
if: ${{ needs.start.outputs.dry_run == 'false' }}
|
if: ${{ needs.start.outputs.dry_run == 'false' }}
|
||||||
run: |
|
run: |
|
||||||
gh release upload ${{ env.MAS_VERSION }} \
|
gh release upload ${MAS_VERSION} \
|
||||||
.build/mas.pkg
|
.build/mas.pkg
|
||||||
|
|
||||||
homebrew-tap:
|
homebrew-tap:
|
||||||
|
@ -144,8 +144,8 @@ jobs:
|
||||||
DRY_RUN: ${{ needs.start.outputs.dry_run }}
|
DRY_RUN: ${{ needs.start.outputs.dry_run }}
|
||||||
MAS_VERSION: ${{ needs.start.outputs.mas_version }}
|
MAS_VERSION: ${{ needs.start.outputs.mas_version }}
|
||||||
run: |
|
run: |
|
||||||
DRY_RUN=${{ env.DRY_RUN }} \
|
DRY_RUN=${DRY_RUN} \
|
||||||
script/brew_tap_update ${{ env.MAS_VERSION }}
|
script/brew_tap_update ${MAS_VERSION}
|
||||||
|
|
||||||
- name: 🚀 Upload Bottles
|
- name: 🚀 Upload Bottles
|
||||||
env:
|
env:
|
||||||
|
@ -153,7 +153,7 @@ jobs:
|
||||||
MAS_VERSION: ${{ needs.start.outputs.mas_version }}
|
MAS_VERSION: ${{ needs.start.outputs.mas_version }}
|
||||||
if: ${{ needs.start.outputs.dry_run == 'false' }}
|
if: ${{ needs.start.outputs.dry_run == 'false' }}
|
||||||
run: |
|
run: |
|
||||||
gh release upload ${{ env.MAS_VERSION }} \
|
gh release upload ${MAS_VERSION} \
|
||||||
.build/bottles/mas-*.bottle.tar.gz
|
.build/bottles/mas-*.bottle.tar.gz
|
||||||
|
|
||||||
homebrew-core:
|
homebrew-core:
|
||||||
|
@ -174,6 +174,6 @@ jobs:
|
||||||
DRY_RUN: ${{ needs.start.outputs.dry_run }}
|
DRY_RUN: ${{ needs.start.outputs.dry_run }}
|
||||||
MAS_VERSION: ${{ needs.start.outputs.mas_version }}
|
MAS_VERSION: ${{ needs.start.outputs.mas_version }}
|
||||||
run: |
|
run: |
|
||||||
DRY_RUN=${{ env.DRY_RUN }} \
|
DRY_RUN=${DRY_RUN} \
|
||||||
script/brew_core_update ${{ env.MAS_VERSION }}
|
script/brew_core_update ${MAS_VERSION}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue