Skip to content

Commit

Permalink
fix workflow commit references 2
Browse files Browse the repository at this point in the history
  • Loading branch information
jriguera committed Mar 28, 2024
1 parent 83735a4 commit 11be402
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release-final-boshrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,10 @@ jobs:
git add .final_builds blobstore releases
message=$(git tag -l --format='%(contents)' "${GITHUB_REF_NAME}")
git commit -m "${message}"
remote=main
[ "${{ github.ref_type }}" == "branch" ] && remote=${{ github.ref_name }}
# This does not trigger another workflow with built-in `GITHUB_TOKEN` secret
git push origin HEAD:${{ github.ref_name }}
git push origin HEAD:${remote}
- name: Generate release notes from git commits
run: |
Expand Down

0 comments on commit 11be402

Please sign in to comment.