We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 108a657 commit 50b194aCopy full SHA for 50b194a
.github/workflows/release.yml
@@ -297,7 +297,10 @@ jobs:
297
with:
298
fetch-depth: 0
299
- name: Get version from branch
300
- run: echo "PACKAGE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
+ 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
304
- name: Buildah build
305
id: build-image
306
uses: redhat-actions/buildah-build@v2
0 commit comments