Skip to content

Commit 468ec01

Browse files
authored
Merge pull request #65 from binh-dam-ibigroup/fix-master-actions
Fix master actions
2 parents 13b28fb + 602c489 commit 468ec01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/node-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
test-build-release:
1111
env:
12-
IS_PUSH_TO_MASTER: ${{ github.event.push && github.ref == 'refs/heads/master' }}
12+
IS_PUSH_TO_MASTER: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
1313

1414
runs-on: ubuntu-latest
1515

@@ -41,7 +41,7 @@ jobs:
4141
# Note that AWS CLI v2 is already installed by default on GitHub's Ubuntu 20.04.
4242
# per https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md#cli-tools.
4343
- name: Add AWS credentials
44-
if: ${{ env.IS_PUSH_TO_MASTER }}
44+
if: ${{ env.IS_PUSH_TO_MASTER == 'true' }}
4545
run: mkdir ~/.aws && printf '%s\n' '[default]' "aws_access_key_id=$AWS_ACCESS_KEY_ID" "aws_secret_access_key=$AWS_SECRET_ACCESS_KEY" "region=$AWS_REGION" > ~/.aws/config
4646
env:
4747
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
@@ -50,5 +50,5 @@ jobs:
5050
# Deploy storybook demo to S3 if handling a push (non-PR build) on the main branch
5151
# https://s3.amazonaws.com/transitive.js/index.html
5252
- name: Deploy storybook to S3
53-
if: ${{ env.IS_PUSH_TO_MASTER }}
53+
if: ${{ env.IS_PUSH_TO_MASTER == 'true' }}
5454
run: yarn deploy-storybook

0 commit comments

Comments
 (0)