diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index 1dc9180..2d33a28 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -5,14 +5,12 @@ jobs: pre-run-notify: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - uses: https://forge.karnov.club/marc/push-status-to-discord-action@main id: post-status with: webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }} - project-name: ${{ github.repository }} status: "Started" - init: true + - run: echo ${{ steps.post-status.outputs.message-id }} sast: runs-on: ubuntu-latest steps: @@ -28,9 +26,15 @@ jobs: runs-on: ubuntu-latest if: always() steps: - - uses: actions/checkout@v4 - uses: https://forge.karnov.club/marc/push-status-to-discord-action@main + if: ${{ success() }} with: webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }} - project-name: ${{ github.repository }} + variant: "success" status: "Success" + - uses: https://forge.karnov.club/marc/push-status-to-discord-action@main + if: ${{ failure() }} + with: + webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }} + variant: "failure" + status: "Failure"