Skip to content

Commit

Permalink
fixing json
Browse files Browse the repository at this point in the history
  • Loading branch information
Streq committed May 26, 2022
1 parent d8ceb8f commit 135c403
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,21 +191,16 @@ jobs:
- name: Send Discord Success Message
if: ${{ env.IS_MAIN && env.DID_PREV_JOBS_SUCCEED == 'true' }}
run: |
echo -n '{"content": "'"$PROJECT_NAME"' '"$VERSION"' has successfully released and deployed!"}' >> myjson
curl --location --request POST $DISCORD_WEBHOOK \
--header 'Content-Type: application/json' \
--data-binary "@myjson"
cat myjson
--data-raw '{"content": "'"$PROJECT_NAME"' '"$VERSION"' has successfully released and deployed!"}'
env:
VERSION: ${{ steps.version_number.outputs.content }}
- name: Send Discord Failure Message
if: ${{ env.IS_MAIN && env.DID_PREV_JOBS_SUCCEED != 'true' }}
run: |
echo -n '{"content": "'"$PROJECT_NAME"' '"$VERSION"' release and/or deployment has failed!"}' >> myjson
curl --location --request POST $DISCORD_WEBHOOK \
--header 'Content-Type: application/json' \
--data-binary "@myjson"
cat myjson
--data-raw '{"content": "'"$PROJECT_NAME"' '"$VERSION"' release and/or deployment has failed!"}'
env:
VERSION: ${{ steps.version_number.outputs.content }}

0 comments on commit 135c403

Please sign in to comment.