diff --git a/.gitea/workflows/build-develop.yaml b/.gitea/workflows/build-develop.yaml index 741bbbb..9a7bbf1 100644 --- a/.gitea/workflows/build-develop.yaml +++ b/.gitea/workflows/build-develop.yaml @@ -28,35 +28,25 @@ jobs: platforms: linux/amd64,linux/arm64 tags: ${{ env.FULL_TAG }} provenance: false - "Notify": - runs-on: ubuntu-docker-latest - if: always() - needs: ["Build Image", "Test Image", "Push Image"] - steps: - - name: Success - uses: rjstone/discord-webhook-notify@v1 - if: success() - with: - severity: info - details: Build succeeded! - webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} - username: Gitea - avatarUrl: ${{ vars.RUNNER_ICON_URL }} - - name: Failure + - name: Notify on failure uses: rjstone/discord-webhook-notify@v1 if: failure() with: - severity: error - details: Build failed! - webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} - username: Gitea - avatarUrl: ${{ vars.RUNNER_ICON_URL }} - - name: Cancelled + severity: error + details: Build failed! + webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} + username: Gitea + avatarUrl: ${{ vars.RUNNER_ICON_URL }} + "Notify": + runs-on: ubuntu-docker-latest + needs: ["Build Image"] + steps: + - name: Notify of success uses: rjstone/discord-webhook-notify@v1 - if: cancelled() + if: success() with: - severity: warn - details: Build cancelled! - webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} - username: Gitea - avatarUrl: ${{ vars.RUNNER_ICON_URL }} \ No newline at end of file + severity: info + details: Build succeeded! + webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} + username: Gitea + avatarUrl: ${{ vars.RUNNER_ICON_URL }} \ No newline at end of file