Skip to content

Commit

Permalink
added check for a status of workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yatrashkevich-scn committed May 24, 2024
1 parent 03d034c commit e9e2318
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/run_deploy_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ on:
workflows: ["run_build"]
types:
- completed

jobs:

deploy_to_ecs:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.pull_request.merged == true }}

env:
TASK_FAMILY_PREFIX: backend
ECS_CLUSTER_NAME: cmiml-dev
Expand Down

0 comments on commit e9e2318

Please sign in to comment.