From d3b0f2e372703f46cbab53b6f8c8cef032a87da4 Mon Sep 17 00:00:00 2001 From: John Ottenlips Date: Thu, 18 Jan 2024 13:37:37 -0600 Subject: [PATCH] notify me on deployment --- .github/workflows/notify-deployment.yaml | 26 ++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/notify-deployment.yaml diff --git a/.github/workflows/notify-deployment.yaml b/.github/workflows/notify-deployment.yaml new file mode 100644 index 0000000..905accc --- /dev/null +++ b/.github/workflows/notify-deployment.yaml @@ -0,0 +1,26 @@ +name: "WODaboard" +on: + push: + branches: + - main + +jobs: + wod: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: oven-sh/setup-bun@v1 + with: + bun-version: latest + - run: | + curl \ + -X POST \ + -H "x-vestaboard-api-key: $VB_SUB_KEY" \ + -H "x-vestaboard-api-secret: $VB_SUB_SECRET" \ + -d '{"text": "{64}New Wodaboard Deployment{64}"}' \ + https://subscriptions.vestaboard.com/subscriptions/$VB_SUB_ID/message + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + VB_SUB_ID: ${{ secrets.VB_SUB_ID }} + VB_SUB_KEY: ${{ secrets.VB_SUB_KEY }} + VB_SUB_SECRET: ${{ secrets.VB_SUB_SECRET }} \ No newline at end of file