Skip to content

Commit

Permalink
Merge pull request #15 from fabidick22/update-api-gateway
Browse files Browse the repository at this point in the history
fix: The set-env command is deprecated
  • Loading branch information
fabidick22 committed Oct 12, 2020
2 parents 0da5235 + 3e9e712 commit 936ea72
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/CD-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ jobs:
fi
stack_name=${APP_NAME}-${environment}
command="deploy --no-fail-on-empty-changeset --no-confirm-changeset --stack-name ${stack_name} --s3-prefix ${APP_NAME}-${environment} --parameter-overrides ParameterKey=Environment,ParameterValue=${environment}"
echo ::set-env name=ENVIRONMENT::$(echo $environment)
echo ::set-env name=DEPLOY_COMMAND::$(echo $command)
echo ::set-env name=STACK_NAME::$(echo ${stack_name})
echo ENVIRONMENT=$(echo $environment) >> $GITHUB_ENV
echo DEPLOY_COMMAND=$(echo $command) >> $GITHUB_ENV
echo STACK_NAME=$(echo ${stack_name}) >> $GITHUB_ENV
env:
APP_NAME: '${{ env.BASE_NAME }}'

Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
message="*Release notes:* <$RELEASE_URL|${{ steps.build_package.outputs.version }}> "
message+="*API URL:* <$API_URL|Provider API ($ENVIRONMENT)> "
fi
echo ::set-env name=COMMENT::$(echo $message)
echo COMMENT=$(echo $message) >> $GITHUB_ENV
env:
API_URL: '${{ steps.urls.outputs.cf_output_HelloWorldApi }}'
RELEASE_URL: 'https://github.com/${{ github.repository }}/releases/tag/v${{ steps.build_package.outputs.version }}'
Expand Down

0 comments on commit 936ea72

Please sign in to comment.