Skip to content

Commit

Permalink
main.yml summary test
Browse files Browse the repository at this point in the history
  • Loading branch information
PassiveLemon committed May 18, 2024
1 parent 35dfde2 commit 2a67de6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run: |
TERRARIA=$(echo "${{ github.event.release.tag_name }}" | awk -F'-' '{print $1}')
TERRARIAFIX=$(echo \"$TERRARIA\" | jq 'gsub("\\."; "")')
echo "Latest terraria release is ${TERRARIA}"
echo "Latest terraria release is ${TERRARIA}" >> "$GITHUB_STEP_SUMMARY"
echo "latest_terraria=$TERRARIA" >> "$GITHUB_OUTPUT"
echo "latest_terraria_fix=$TERRARIAFIX" >> "$GITHUB_OUTPUT"
Expand All @@ -27,7 +27,7 @@ jobs:
CHECK=$(curl -s "https://hub.docker.com/v2/repositories/passivelemon/terraria-docker/tags/${{ github.event.release.tag_name }}")
echo $CHECK
if echo "${CHECK}" | jq -e ".digest" > /dev/null; then
echo "Version ${{ github.event.release.tag_name }} already exists. Stopping..."
echo "Version ${{ github.event.release.tag_name }} already exists." >> "$GITHUB_STEP_SUMMARY"
exit 1
fi
echo "Version ${{ github.event.release.tag_name }} does not already exist. Continuing..."
Expand Down

0 comments on commit 2a67de6

Please sign in to comment.