diff --git a/.github/workflows/CD.yaml b/.github/workflows/CD.yaml index 19d120c..208858d 100644 --- a/.github/workflows/CD.yaml +++ b/.github/workflows/CD.yaml @@ -1,6 +1,10 @@ name: Deploy Infrastructure on: + workflow_run: + workflows: ["Execute Tests"] + types: + - completed push: branches: - dev @@ -9,6 +13,11 @@ jobs: BootstrapBucketCreation: name: Bootstrap runs-on: ubuntu-latest + if: > + ${{ + github.event.workflow_run.conclusion == 'success' && + github.event.workflow_run.head_branch == 'dev' + }} permissions: id-token: write contents: read diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index ece2f40..48ec687 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -2,9 +2,6 @@ name: Execute Tests on: push: - branches: - - dev - - tests jobs: