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 3de9c90 commit c2d3f6eCopy full SHA for c2d3f6e
.github/workflows/nightly.yaml
@@ -47,9 +47,12 @@ jobs:
47
id: check_tags
48
run: |
49
curr_sha=$(git rev-parse HEAD)
50
- prev_sha=$(git rev-parse ${{ env.PREV_TAG }})
+ prev_sha=$(git rev-parse ${{ env.PREV_TAG }} 2>/dev/null)
51
52
- if [[ "$curr_sha" == "$prev_sha" ]]; then
+ if [[ $? -ne 0 ]]; then
53
+ echo "Tag ${{ env.PREV_TAG }} cannot be resolved. Continuing..."
54
+ echo "needs_build=true" >> $GITHUB_OUTPUT;
55
+ elif [[ "$curr_sha" == "$prev_sha" ]]; then
56
echo "No changes since last nightly release. Exiting..."
57
echo "needs_build=false" >> $GITHUB_OUTPUT;
58
else
0 commit comments