Skip to content

Commit

Permalink
updated notify workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotaku committed Jul 25, 2023
1 parent ef142f0 commit 61ab3da
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/community-notify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ jobs:
send-notify:
runs-on: ubuntu-latest
steps:
- uses: fjogeleit/http-request-action@v1
with:
url: '${{ secrets.DISCORD_NOTIFY_WEBHOOK }}'
method: 'POST'
customHeaders: '{"Content-Type": "application/json"}'
data: '${{ toJSON(github.event) }}'
- name: Install Dependencies
run: |
sudo apt-get -y update
sudo apt-get -y install jq curl
env:
DEBIAN_FRONTEND: 'noninteractive'
- name: Post Event
run: |
curl -X POST -H 'Content-Type: application/json' \
-d $(echo '${{ toJSON(github.event) }}' | jq '.action = "created"') \
${{ secrets.DISCORD_NOTIFY_WEBHOOK }}

0 comments on commit 61ab3da

Please sign in to comment.