Add startup and completion messages
All checks were successful
Build and push / post-startup-message (push) Successful in 3s
Build and push / post-finish-message (push) Has been skipped
Build and push / detect-changed-files (push) Successful in 4s
Build and push / Lint-Python (push) Has been skipped
Build and push / Build-and-Push-Docker (push) Has been skipped
Build and push / sync-argocd-app (push) Has been skipped

This commit is contained in:
Luke Robles 2024-05-03 11:20:08 -07:00
parent a972332bc7
commit e9d295dd53

View File

@ -9,7 +9,8 @@ jobs:
- uses: sarisia/actions-status-discord@v1
if: always()
with:
title: Pipeline is starting:${{ github.event.head_commit.message }}
title: "Pipeline is starting"
status:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
detect-changed-files:
runs-on: ubuntu-latest
@ -84,3 +85,14 @@ jobs:
version: 2.6.7
command: app
options: --insecure --server 192.168.1.205 --auth-token ${{ secrets.ARGOCD_TOKEN }} set dragon-bot --helm-set image.tag=${{ gitea.run_id }}
post-finish-message:
runs-on: ubuntu-latest
if: ${{ (steps.Build-and-Push-Docker.outcome == 'success') }}
steps:
- uses: sarisia/actions-status-discord@v1
if: always()
with:
title: "Pipeline has completed successfully"
status:
webhook: ${{ secrets.DISCORD_WEBHOOK }}