mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 01:41:05 -05:00
Only run deploy on main branch if tests pass
This commit is contained in:
14
.github/workflows/deploy.yml
vendored
14
.github/workflows/deploy.yml
vendored
@@ -5,7 +5,7 @@ on:
|
|||||||
workflows: [ Run checks ]
|
workflows: [ Run checks ]
|
||||||
types:
|
types:
|
||||||
- completed
|
- completed
|
||||||
# branches: [ main ]
|
branches: [ main ] # Redundant, workflow_run events are only triggered on default branch (`main`)
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@@ -13,7 +13,7 @@ permissions:
|
|||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install container dependencies
|
- name: Install container dependencies
|
||||||
@@ -51,8 +51,8 @@ jobs:
|
|||||||
--var AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" \
|
--var AWS_ACCESS_KEY_ID="$AWS_ACCESS_KEY_ID" \
|
||||||
--var AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY"
|
--var AWS_SECRET_ACCESS_KEY="$AWS_SECRET_ACCESS_KEY"
|
||||||
|
|
||||||
# bail:
|
bail:
|
||||||
# runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
|
||||||
# steps:
|
steps:
|
||||||
# - run: echo 'Checks failed, preventing deploy'
|
- run: echo 'Checks failed, not deploying'
|
||||||
|
|||||||
Reference in New Issue
Block a user