diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd13813be..3881c99e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,19 +108,6 @@ jobs: - name: Run Cargo.toml linter run: git ls-files | grep Cargo.toml$ | xargs --verbose -n 1 cargo-toml-lint - - name: Notify if Job Fails - uses: ravsamhq/notify-slack-action@v1 - if: always() && github.ref == 'refs/heads/master' - with: - status: ${{ job.status }} - token: ${{ secrets.GITHUB_TOKEN }} - notification_title: "{workflow} has {status_message}" - message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> : <{run_url}|View Run Results>" - footer: "" - notify_when: "failure" - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_NOTIFY_BUILD }} - publish-check: # Only do this job if publishing a release needs: @@ -137,10 +124,8 @@ jobs: curl -sSLf "https://github.com/TomWright/dasel/releases/download/v1.24.3/dasel_linux_amd64" -L -o dasel && chmod +x dasel mv ./dasel /usr/local/bin/dasel ./.github/workflows/scripts/verify_tag.sh ${{ github.ref_name }} Cargo.toml - - name: Notify if Job Fails uses: ravsamhq/notify-slack-action@v1 - if: always() with: status: ${{ job.status }} token: ${{ secrets.GITHUB_TOKEN }} @@ -149,7 +134,7 @@ jobs: footer: "" notify_when: "failure" env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_NOTIFY_BUILD }} + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TOOLING }} build-release: name: build fuelup release binaries diff --git a/.github/workflows/nightly-cargo-audit.yml b/.github/workflows/nightly-cargo-audit.yml index 6f5ff26fb..3080cb7b4 100644 --- a/.github/workflows/nightly-cargo-audit.yml +++ b/.github/workflows/nightly-cargo-audit.yml @@ -12,3 +12,15 @@ jobs: - uses: actions-rs/audit-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} + - name: Notify if Job Fails + uses: ravsamhq/notify-slack-action@v1 + with: + status: ${{ job.status }} + token: ${{ secrets.GITHUB_TOKEN }} + notification_title: "{workflow} has {status_message}" + message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> : <{run_url}|View Run Results>" + footer: "" + notify_when: "failure" + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TOOLING }} + diff --git a/.github/workflows/publish-nightly-channel.yml b/.github/workflows/publish-nightly-channel.yml index 0a1a2e500..7b006e44e 100644 --- a/.github/workflows/publish-nightly-channel.yml +++ b/.github/workflows/publish-nightly-channel.yml @@ -57,3 +57,15 @@ jobs: destination_dir: ${{ steps.setup.outputs.archive_dir }} user_name: 'github-actions[bot]' user_email: 'github-actions[bot]@users.noreply.github.com' + + - name: Notify if Job Fails + uses: ravsamhq/notify-slack-action@v1 + with: + status: ${{ job.status }} + token: ${{ secrets.GITHUB_TOKEN }} + notification_title: "{workflow} has {status_message}" + message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}> : <{run_url}|View Run Results>" + footer: "" + notify_when: "failure" + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TOOLING }}