Skip to content

v1.5.23

v1.5.23 #10

name: Notify Community Discord
on:
release:
types: [ released ]
jobs:
send-notify:
runs-on: ubuntu-latest
steps:
- name: Manipulate Event
uses: actions/github-script@v6
id: set-result
with:
script: |
const fs = require('fs');
const payload = { ...context.payload, action: 'created' };
fs.writeFileSync(process.env.GITHUB_EVENT_PATH, JSON.stringify(payload));
- name: Post Event
run: |
curl -X POST -H 'Content-Type: application/json' -d @$GITHUB_EVENT_PATH ${{ secrets.DISCORD_NOTIFY_WEBHOOK }}