From 4f64f0d19b6957bf72d7e984135559831ed6ddd9 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 15 Feb 2024 01:20:38 -0800 Subject: [PATCH] Add Discord notification job --- .gitea/workflows/deploy-to-fighter.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy-to-fighter.yml b/.gitea/workflows/deploy-to-fighter.yml index c90adb5..b9b85ab 100644 --- a/.gitea/workflows/deploy-to-fighter.yml +++ b/.gitea/workflows/deploy-to-fighter.yml @@ -42,4 +42,12 @@ jobs: echo "===== Deploying $(basename $PWD) =====" && docker compose up -d done - + Notify: + runs-on: fighter + steps: + - name: Discord notifications + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + uses: Ilshidur/action-discord@master + with: + args: '{{ EVENT_PAYLOAD.repository.full_name }} deployed to fighter'