Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
abdallahmehiz committed Aug 24, 2024
1 parent 734ba9f commit 5ced512
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ced512

Please sign in to comment.