Skip to content

Commit eb6fa08

Browse files
author
PEZ
committed
Use SOURCE_BRANCH env variable
1 parent a46a6f5 commit eb6fa08

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,11 @@ jobs:
132132
- name: Checkout
133133
uses: actions/checkout@v4
134134
with:
135-
ref: ${{ github.ref_name }}
135+
fetch-depth: 0
136+
137+
- name: Get Source Branch
138+
id: source-branch
139+
run: echo "BUMP_BRANCH=$(git name-rev --name-only --exclude=tags/* HEAD)" >> $GITHUB_ENV
136140

137141
- name: Setup Babashka
138142
uses: DeLaGuardo/[email protected]
@@ -142,4 +146,5 @@ jobs:
142146
- name: Bump Version
143147
env:
144148
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
149+
SOURCE_BRANCH: ${{ env.BUMP_BRANCH}}
145150
run: bb ci:bump-version-and-push "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" "${{ github.actor }}" --force

0 commit comments

Comments
 (0)