From 775011d68b0f551f52919db056cbff486970955a Mon Sep 17 00:00:00 2001 From: obs-gh-colinhutchinson <131207535+obs-gh-colinhutchinson@users.noreply.github.com> Date: Fri, 17 Nov 2023 14:37:03 -0500 Subject: [PATCH] fix(ci): don't try to provision an AWS account if we lack permissions (#61) --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0dc55f..6b1c55b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,6 +66,7 @@ jobs: build: runs-on: ubuntu-latest + needs: permission_check outputs: image_name: ${{ steps.set_output_image_name.outputs.image_name }} @@ -127,6 +128,7 @@ jobs: cache-to: type=gha,mode=max - name: Provision DCE + if: needs.permission_check.outputs.can-write == 'true' uses: observeinc/github-action-dce@1.0.1 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}