Skip to content

Commit 71ebdbc

Browse files
authored
use the push_image flag
1 parent ec7f0aa commit 71ebdbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/actions/artifacts_build/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ runs:
4444
run_unit_tests: true
4545

4646
- name: Configure AWS Credentials
47-
if: github.event_name != 'pull_request'
47+
if: inputs.push_image == true
4848
uses: aws-actions/configure-aws-credentials@v4
4949
with:
5050
role-to-assume: ${{ inputs.snapshot-ecr-role }}
@@ -66,7 +66,7 @@ runs:
6666
uses: docker/setup-buildx-action@v3
6767

6868
- name: Login to AWS ECR
69-
if: github.event_name != 'pull_request'
69+
if: inputs.push_image == true
7070
uses: docker/login-action@v3
7171
with:
7272
registry: ${{ inputs.image_registry }}

0 commit comments

Comments
 (0)