mirror of
https://github.com/mas-cli/mas
synced 2025-02-16 12:38:30 +00:00
♻️ Extract git push from brew_tap_update script
This commit is contained in:
parent
53319d911d
commit
52c96db818
2 changed files with 3 additions and 3 deletions
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
|
@ -158,14 +158,16 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
DRY_RUN: ${{ needs.start.outputs.dry_run }}
|
DRY_RUN: ${{ needs.start.outputs.dry_run }}
|
||||||
|
RELEASE_BRANCH: ${{ needs.start.outputs.release_branch }}
|
||||||
MAS_VERSION: ${{ needs.start.outputs.mas_version }}
|
MAS_VERSION: ${{ needs.start.outputs.mas_version }}
|
||||||
run: |
|
run: |
|
||||||
cd "$(brew --repository mas-cli/tap)"
|
cd "$(brew --repository mas-cli/tap)"
|
||||||
|
git push --set-upstream origin "${RELEASE_BRANCH}"
|
||||||
gh pr create \
|
gh pr create \
|
||||||
--assignee phatblat \
|
--assignee phatblat \
|
||||||
--base main \
|
--base main \
|
||||||
--draft \
|
--draft \
|
||||||
--head "${branch_name}" \
|
--head "${RELEASE_BRANCH}" \
|
||||||
--title "🔖 Version ${MAS_VERSION}" \
|
--title "🔖 Version ${MAS_VERSION}" \
|
||||||
--body "This PR contains the changes from releasing version [${MAS_VERSION}](https://github.com/mas-cli/mas/releases/tag/${MAS_VERSION})."
|
--body "This PR contains the changes from releasing version [${MAS_VERSION}](https://github.com/mas-cli/mas/releases/tag/${MAS_VERSION})."
|
||||||
|
|
||||||
|
|
|
@ -89,8 +89,6 @@ $echo git add \
|
||||||
|
|
||||||
$echo git commit --message="🔖 Version ${MAS_VERSION}"
|
$echo git commit --message="🔖 Version ${MAS_VERSION}"
|
||||||
|
|
||||||
$echo git push --set-upstream origin "${branch_name}"
|
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Build in mas project
|
# Build in mas project
|
||||||
|
|
Loading…
Add table
Reference in a new issue