Skip to content

Commit

Permalink
Try a different variable
Browse files Browse the repository at this point in the history
Looks like github.* variables don't persist across steps. Maybe environment variables do?
  • Loading branch information
waldoj committed Dec 3, 2021
1 parent c7a84ca commit a232608
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ jobs:
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: us-east-1
- name: Staging CodeDeploy Deployment
if: ${{ github.head_ref == 'master' }}
if: ${{ GITHUB_BRANCH == 'master' }}
run: |
aws deploy create-deployment \
--application-name RS-Web \
--deployment-group-name RS-Web-Staging \
--deployment-config-name CodeDeployDefault.OneAtATime \
--github-location repository=${{ github.repository }},commitId=${{ github.sha }}
- name: Production CodeDeploy Deployment
if: ${{ github.head_ref == 'deploy' }}
if: ${{ GITHUB_BRANCH == 'deploy' }}
run: |
aws deploy create-deployment \
--application-name RS-Web \
Expand Down

0 comments on commit a232608

Please sign in to comment.