Skip to content

Commit 489e70f

Browse files
GHA-129 Let the release workflow keep the correct ref when launching the calling repo's own release workflow (#57)
1 parent 8c1d17d commit 489e70f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

publish-github-release/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ runs:
126126
shell: bash
127127
env:
128128
GITHUB_TOKEN: ${{ inputs.github-token }}
129+
GITHUB_REF: ${{ inputs.branch }}
129130
run: |
130131
# Set release ID based on draft status
131132
if [[ "${{ inputs.draft }}" == "true" ]]; then
@@ -139,6 +140,7 @@ runs:
139140
# Trigger the workflow
140141
gh workflow run "${{ inputs.release-workflow }}" \
141142
--repo "${{ github.repository }}" \
143+
--ref $GITHUB_REF \
142144
-f "version=$VALIDATED_VERSION" \
143145
-f "releaseId=$RELEASE_ID_VALUE" \
144146
-f "dryRun=${{ inputs.draft }}"

0 commit comments

Comments
 (0)