From 5ced512708dc7ab205975b7b56836d8985a126f7 Mon Sep 17 00:00:00 2001 From: AbdallahMehiz Date: Sat, 24 Aug 2024 16:07:17 +0100 Subject: [PATCH] test --- .github/workflows/preview.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 7135265..f669522 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -53,6 +53,7 @@ jobs: echo "CURRENT_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV prev_commit_count=$(echo "${{ steps.last_release.outputs.tag_name }}" | sed -e "s/^r//") commit_count_diff=$(expr ${{ env.COMMIT_COUNT }} - $prev_commit_count) + [ $commit_count_diff != 0 ] || exit 1 commit_count_diff_plus_one=$(expr $commit_count_diff + 1) prev_release_sha=$(git log --topo-order -n $commit_count_diff --skip $commit_count_diff --max-count 1 --pretty=format:"%H") echo "PREV_RELEASE_SHA=$prev_release_sha" >> $GITHUB_ENV