Skip to content

Commit

Permalink
ci: added notifications
Browse files Browse the repository at this point in the history
Signed-off-by: Mateusz Urbanek <mateusz.urbanek.98@gmail.com>
  • Loading branch information
shanduur committed Oct 6, 2024
1 parent af40a2d commit 39a0c77
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/tofu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,29 @@ jobs:
access_token: ${{ secrets.BW_ACCESS_TOKEN }}
base_url: https://vault.bitwarden.com
secrets: |
953077e4-dbec-4595-a0d7-b1d400d8adc6 > DISCORD_WEBHOOK
b7d22a8b-8185-4d62-8bf6-b1d400b87552 > PG_CONN_STR
a288b2ae-a336-4425-9b07-b1f100cd05ec > TF_VAR_gh_token
- run: |
tofu init -upgrade
- run: |
GITHUB_TOKEN="${TF_VAR_gh_token}" tofu \
apply -auto-approve -input=false -lock=true -no-color
- uses: rjstone/discord-webhook-notify@v1
if: success()
with:
severity: info
details: "[${{ github.action_repository }}] Apply succesfull @ ${{ github.ref }}"
webhookUrl: ${{ env.DISCORD_WEBHOOK }}
- uses: rjstone/discord-webhook-notify@v1
if: failure()
with:
severity: error
details: "[${{ github.action_repository }}] Apply failed @ ${{ github.ref }}"
webhookUrl: ${{ env.DISCORD_WEBHOOK }}
- uses: rjstone/discord-webhook-notify@v1
if: cancelled()
with:
severity: warn
details: "[${{ github.action_repository }}] Apply cancelled @ ${{ github.ref }}"
webhookUrl: ${{ env.DISCORD_WEBHOOK }}

0 comments on commit 39a0c77

Please sign in to comment.