Skip to content

Commit

Permalink
adds condition to deploy workflow to only execute if tests were succe…
Browse files Browse the repository at this point in the history
…ssful
  • Loading branch information
Victor Beas authored and Victor Beas committed Dec 27, 2024
1 parent 121d296 commit b4c57a9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ on:
push:
branches:
- prod
workflow_run:
workflows: ["Run Tests"]
types:
- completed
workflow_dispatch:

jobs:
build:
deploy:
if: ${{ github.event.workflow_run.conclusion == 'success' }} # Only deploy if tests were successful
name: Deploy KhipuClientIOS to Cocoapods # https://cocoapods.org/pods/KhipuClientIOS
runs-on: macos-latest

Expand Down

0 comments on commit b4c57a9

Please sign in to comment.