File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 2626
2727 - name : Get latest tag
2828 id : tag
29- run : echo "LATEST_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
29+ run : |
30+ if ! LATEST_TAG=$(git describe --tags --abbrev=0); then
31+ echo "::error::No tags found in repository"
32+ exit 1
33+ fi
34+ echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV
3035
3136 - name : Build SIF image
3237 run : |
Original file line number Diff line number Diff line change 2323
2424 - name : Get latest tag
2525 id : tag
26- run : echo "LATEST_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
26+ run : |
27+ if ! LATEST_TAG=$(git describe --tags --abbrev=0); then
28+ echo "::error::No tags found in repository"
29+ exit 1
30+ fi
31+ echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV
2732
2833 - name : Log in to Docker Hub
2934 uses : docker/login-action@v3
You can’t perform that action at this time.
0 commit comments