Skip to content
This repository has been archived by the owner on Mar 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #9 from cpolanec/fix-action-env-logic
Browse files Browse the repository at this point in the history
fix action env logic
  • Loading branch information
cpolanec authored Dec 2, 2020
2 parents 36b962c + f9eaf6e commit a8f5ee3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/sync-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches: ["**"]
tags-ignore: ["v*.*"]

# environment variables that are independant of current branch
# environment variables that are independent of current branch
env:
AWS_REGION: us-east-1
CLOUDFORMATION_ROLE_ARN: ${{ secrets.AWS_CLOUDFORMATION_ROLE_ARN }}
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Set environment variables based on git branch
id: setenv
run: |
if [[ "${{github.ref}}" == "ref/heads/main" ]]; then
if [[ "${{github.ref}}" == "refs/heads/main" ]]; then
echo "::set-output name=environment::main"
echo "::set-output name=network_stack_name::minecraft-main-network"
echo "::set-output name=templates_stack_name::minecraft-main-ec2templates"
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
run: ./servers/destroy-resources.sh --only-orphans

- name: Cleanup resources used in testing
if: (!endsWith(github.ref, '/main'))
if: ${{ github.ref != 'refs/heads/main' }}
run: |
./servers/destroy-resources.sh --all
./templates/destroy-resources.sh
Expand Down

0 comments on commit a8f5ee3

Please sign in to comment.