Skip to content

Commit

Permalink
+ GitHub - Added uploading to webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
May2Beez committed Sep 30, 2023
1 parent af60907 commit f177205
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,13 @@ jobs:
- name: Check for GH_TOKEN and DISCORD_WEBHOOK_URL
id: check_secrets
run: |
if [[ -z "${{ GITHUB_TOKEN }}" || -z "${{ secrets.DISCORD_WEBHOOK_URL }}" ]]
if [[ -z "${{ secrets.DISCORD_WEBHOOK_URL }}" ]]
then
echo "Secrets GITHUB_TOKEN or DISCORD_WEBHOOK_URL not provided, skipping tasks"
echo "Secret DISCORD_WEBHOOK_URL not provided, skipping tasks"
echo "::set-output name=result::failure"
else
echo "::set-output name=result::success"
fi
env:
GITHUB_TOKEN: ${{ github.token }}
# Step 6: Send an embed message with commit details to Discord
- name: Send embed message with timestamp and footer
Expand Down

0 comments on commit f177205

Please sign in to comment.