Skip to content

Commit 000b39e

Browse files
authored
Fix for container rc tag (#389)
## 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. --> Fix to parsing rc ref in CI --- - [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 108a657 commit 000b39e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)