What's Changed
-
You can now get Discord embed payload json as action output like:
- uses: sarisia/actions-status-discord@v1 if: always() id: webhook # set id to reference output payload later with: ack_no_webhook: true # set this to suppress warning # you can omit webhook input (or DISCORD_WEBHOOK environment variable) - run: npm install axios - uses: actions/github-script@v7 env: WEBHOOK_PAYLOAD: ${{ steps.webhook.outputs.payload }} WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK }} with: script: | const axios = require("axios") const { WEBHOOK_PAYLOAD, WEBHOOK_URL } = process.env const payload = JSON.parse(WEBHOOK_PAYLOAD) // modify payload as you like delete payload.embeds[0].color // send to Discord axios.post(WEBHOOK_URL, payload)
- See README for more details
-
Update dependencies
Full Changelog: v1.14.7-src...v1.15.0-src