v1.15.0 #43
Annotations
1 warning
embed field value must be shorter than 1024, got 1189
**v1.15.0**
## What's Changed
- You can now get Discord embed payload json as action output like:
```yaml
- 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](https://github.com/sarisia/actions-status-discord?tab=readme-ov-file#full-payload-control) for more details
- Update dependencies
**Full Changelog**: https://github.com/sarisia/actions-status-discord/compare/v1.14.7-src...v1.15.0-src
|
This job succeeded
Loading