Skip to content

Commit

Permalink
Move DEFAULT_BRANCH_NAME environment variable from top level to `🚰 …
Browse files Browse the repository at this point in the history
…Bump mas-cli/tap/mas formula` step.

Partial mas-cli#638

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
  • Loading branch information
rgoldberg committed Dec 20, 2024
1 parent 42ab8a5 commit 4f96d96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tag-pushed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ defaults:
run:
# Force all run commands to not use Rosetta 2
shell: arch -arm64 /bin/zsh {0}
env:
DEFAULT_BRANCH_NAME: ${{github.event.repository.default_branch}}
jobs:
tag-pushed:
if: github.repository == 'mas-cli/mas'
Expand All @@ -36,6 +34,8 @@ jobs:
fi
- name: 🌳 Delete version tag not on main
env:
DEFAULT_BRANCH_NAME: ${{github.event.repository.default_branch}}
run: |
if ! git merge-base --is-ancestor "${GITHUB_REF_NAME}" "${DEFAULT_BRANCH_NAME}"; then
printf $'Error: Deleting version tag %s because it is not on the %s branch\n' "${GITHUB_REF_NAME}" \
Expand Down

0 comments on commit 4f96d96

Please sign in to comment.