Skip to content

Commit 85d3bf3

Browse files
committed
ci: exit workflow when version is null
1 parent 8d0c8ac commit 85d3bf3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/upgpkg-dae.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
2222
- name: Export latest dae version
2323
run: |
2424
NEW_VERSION=`curl -s https://api.github.com/repos/daeuniverse/dae/releases/latest | jq -r '.tag_name' | sed 's/v//g'`
25+
if [ -z "$NEW_VERSION" ] || [ "$NEW_VERSION" = "null" ] ; then
26+
echo "NEW_VERSION is empty, stopping the workflow"
27+
exit 1
28+
fi
2529
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
2630
2731
- name: Run rpmdev-bumpspec action

.github/workflows/upgpkg-daed.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
2222
- name: Export latest daed version
2323
run: |
2424
NEW_VERSION=`curl -s https://api.github.com/repos/daeuniverse/daed/releases/latest | jq -r '.tag_name' | sed 's/v//g'`
25+
if [ -z "$NEW_VERSION" ] || [ "$NEW_VERSION" = "null" ] ; then
26+
echo "NEW_VERSION is empty, stopping the workflow"
27+
exit 1
28+
fi
2529
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
2630
2731
- name: Run rpmdev-bumpspec action

0 commit comments

Comments
 (0)