Skip to content

Commit 2bd9234

Browse files
committed
Get branch directly from API
1 parent 294c9e9 commit 2bd9234

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/attachReleaseArtifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Get Branch
2222
shell: bash
2323
run: |
24-
releaseBranch=$(git branch -a --contains ${GITHUB_SHA} | head -n 2 | tail -n 1 | sed -e "s/\s*//" | sed -e "s/remotes\/origin\///")
24+
releaseBranch=${{ github.event.release.target_commitish }}
2525
echo "Found branch ${releaseBranch}"
2626
echo "tagged_branch=${releaseBranch}" >> $GITHUB_ENV
2727

0 commit comments

Comments
 (0)