Make the github action fail if used on the main branch (#7967)

This commit is contained in:
Zachary Winnerman 2022-09-29 13:30:47 -04:00 committed by GitHub
parent 75e49e9740
commit 7e69a34f51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,6 +39,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
- id: fail-on-main
run: "false"
if: ${{ github.ref == 'main' }}
- uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{env.AWS_IAM_ROLE}}