Skip to content

Commit

Permalink
Add separate failure job for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel- committed Sep 26, 2024
1 parent 2eaaa55 commit 615f9eb
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,30 @@ jobs:
asset_name: ark-${{ needs.get_version.outputs.ARK_VERSION }}${{ env.DEBUG_FLAG }}-linux-arm64.zip
asset_content_type: application/octet-stream

status:
# status:
# if: ${{ failure() }}
# runs-on: ubuntu-latest
# needs: [build_macos, build_windows, build_linux, get_version]
# steps:
# - name: Notify slack if build fails
# uses: slackapi/[email protected]
# id: slack-failure
# with:
# payload: |
# {
# "message": "Positron build ${{ needs.get_version.outputs.ARK_VERSION }} failed",
# "status": "Failure",
# "run_url": "https://github.com/posit-dev/positron/actions/runs/${{ github.run_id }}"
# }
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

cleanup:
if: ${{ failure() }}
runs-on: ubuntu-latest
needs: [build_macos, build_windows, get_version]
needs: [upload_release_binaries]
steps:
# - name: Notify slack if build fails
# - name: Notify slack if release fails
# uses: slackapi/[email protected]
# id: slack-failure
# with:
Expand Down

0 comments on commit 615f9eb

Please sign in to comment.