Skip to content

Commit

Permalink
IOS-8741: Add support for build cancellation (Beta/RC builds)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Fedorov <[email protected]>
  • Loading branch information
m3g0byt3 committed Jan 31, 2025
1 parent 7a8c3c7 commit c8b4985
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build-deploy-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,3 +239,25 @@ jobs:
build_description: '${{ inputs.build_description }}'
secrets:
SLACK_BOT_TOKEN: '${{ secrets.SLACK_BOT_TOKEN }}'

cancel_notification:
name: Cancel Notification
if: cancelled()
uses: tangem/actions/.github/workflows/notification.yml@feature/IOS-8741_ci_cd_notifications
needs:
- prepare
- build
- deploy
- build_notification
with:
channel: '${{ vars.SLACK_CHANNEL_DEPLOYMENTS_IOS }}'
message_ts: '${{ needs.build_notification.outputs.ts }}'
status: 'cancel'
app_name: '${{ needs.prepare.outputs.version }}'
deploy_to: '${{ vars.DEPLOYMENT_GOOGLE_DISTRIBUTION }}'
version: '${{ needs.prepare.outputs.version }}'
build_number: '${{ needs.prepare.outputs.build_number }}'
changelog: '${{ needs.prepare.outputs.jira-issues-summary }}'
build_description: '${{ inputs.build_description }}'
secrets:
SLACK_BOT_TOKEN: '${{ secrets.SLACK_BOT_TOKEN }}'
21 changes: 21 additions & 0 deletions .github/workflows/build-deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,3 +218,24 @@ jobs:
build_description: '${{ inputs.build_description }}'
secrets:
SLACK_BOT_TOKEN: '${{ secrets.SLACK_BOT_TOKEN }}'

cancel_notification:
name: Cancel Notification
if: cancelled()
uses: tangem/actions/.github/workflows/notification.yml@feature/IOS-8741_ci_cd_notifications
needs:
- prepare
- build
- deploy
- build_notification
with:
channel: '${{ vars.SLACK_CHANNEL_DEPLOYMENTS_IOS }}'
message_ts: '${{ needs.build_notification.outputs.ts }}'
status: 'cancel'
app_name: '${{ needs.prepare.outputs.version }}'
deploy_to: '${{ vars.DEPLOYMENT_APPLE_TESTFLIGHT }}'
version: '${{ needs.prepare.outputs.version }}'
build_number: '${{ needs.prepare.outputs.build_number }}'
build_description: '${{ inputs.build_description }}'
secrets:
SLACK_BOT_TOKEN: '${{ secrets.SLACK_BOT_TOKEN }}'

0 comments on commit c8b4985

Please sign in to comment.