Skip to content

Commit 90a05ab

Browse files
authored
Fix for container rc tag (Attempt 2) (#398)
## Summary <!-- Include a short paragraph of the changes introduced in this PR. If this PR requires additional context or rationale, explain why the changes are necessary. --> This is the same fix as #389 but applied to the RC workflow rather than the release workflow as was the original intent with #389. Both workflows need this change so not reverting the other one. --- - [x] "I certify that all code in this PR is my own, except as noted below." ## Use of AI - [ ] Includes AI-assisted code completion - [ ] Includes code generated by an AI application - [ ] Includes AI-generated tests (NOTE: AI written tests should have a docstring that includes `## WRITTEN BY AI ##`) Signed-off-by: Samuel Monson <[email protected]>
1 parent 000b39e commit 90a05ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release-candidate.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,10 @@ jobs:
298298
with:
299299
fetch-depth: 0
300300
- name: Get version from branch
301-
run: echo "PACKAGE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
301+
run: |
302+
GITHUB_REF="${{ github.ref }}"
303+
[[ -z "$GITHUB_REF" ]] && exit 1 # Fail if ref is unset
304+
echo "PACKAGE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
302305
- name: Buildah build
303306
id: build-image
304307
uses: redhat-actions/buildah-build@v2

0 commit comments

Comments
 (0)