Skip to content

Handle throttle return codes from send APIs #38

Handle throttle return codes from send APIs

Handle throttle return codes from send APIs #38

Workflow file for this run

---
name: Pull Request
on: pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run Luacheck
uses: nebularg/actions-luacheck@v1
with:
args: --no-color -q
annotate: warning
- name: Create Package
uses: BigWigsMods/packager@master
with:
args: -d -z -S
- uses: actions/upload-artifact@v3
with:
name: Chomp-PR-${{ github.event.number }}
path: .release/
- name: Send Webhook Notification
if: failure()
run: |
git clone https://github.com/DiscordHooks/github-actions-discord-webhook.git webhook
bash webhook/send.sh $JOB_STATUS $WEBHOOK_URL
env:
JOB_STATUS: ${{ job.status }}
HOOK_OS_NAME: ${{ runner.os }}
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
WORKFLOW_NAME: ${{ github.workflow }}