From ad9d71da2e6b9df5ea31f3654d9e5ed2aa6e976e Mon Sep 17 00:00:00 2001 From: Joe Maller Date: Thu, 12 Sep 2024 13:49:30 -0400 Subject: [PATCH] update AWS condition in example action --- example/.github/workflows/publish-to-aws.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/.github/workflows/publish-to-aws.yml b/example/.github/workflows/publish-to-aws.yml index 378a840..e410169 100644 --- a/example/.github/workflows/publish-to-aws.yml +++ b/example/.github/workflows/publish-to-aws.yml @@ -64,7 +64,7 @@ jobs: gh release create v${TAG} ../${REPO}.zip - name: Send artifacts to S3 - if: github.ref == 'refs/heads/main' && contains(github.ref, 'refs/tags/') && env.AWS_ACCESS_KEY_ID + if: ${{ contains(github.ref, 'refs/tags/') && env.AWS_ACCESS_KEY_ID }} run: | aws s3 sync assets $S3_URI/${REPO} aws s3 cp ../${REPO}.zip ${S3_URI}/${REPO}/${REPO}_${TAG}.zip