Skip to content

Commit

Permalink
Merge pull request #74 from shameemshah/dev
Browse files Browse the repository at this point in the history
test
  • Loading branch information
shameemshah authored Nov 24, 2022
2 parents a6363ec + 8f9ca6e commit 085d4e0
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/production_release_action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,19 @@ jobs:
echo "commit sha: $tag_sha"
else
sha=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" "https://api.github.com/repos/${{ github.repository }}/git/tags/$tag_sha" | jq '.object.sha')
# echo "Previous commit sha: $sha"
PreviousSha=${{ github.sha }}
n=`echo -n "$sha"|wc -c`
echo "sha : $n "
n=`echo -n "$PreviousSha"|wc -c`
echo "Prsha : $n "
fi
PreviousSha=${{ github.sha }}
echo $PreviousSha
n=`echo -n "$sha"|wc -c`
n=`echo -n "$tag_sha"|wc -c`
echo "sha : $n "
n=`echo -n "$PreviousSha"|wc -c`
echo "Prsha : $n "
if [[ $sha == $PreviousSha ]]
if [[ $tag_sha == $PreviousSha ]]
then
echo "Nothing changed from last release" >> $GITHUB_STEP_SUMMARY
exit 1
Expand Down

0 comments on commit 085d4e0

Please sign in to comment.