Skip to content

Commit ddbe2d0

Browse files
authored
Merge branch 'main' into feature/add-tooltip-to-metric-summary
2 parents 748da5e + 000b39e commit ddbe2d0

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)