Browse Source

Use GITHUB_OUTPUT, not set-output (which is deprecated)

cldc-2563-aws-production-pipeline-backup
Sam Seed 1 year ago
parent
commit
cf36b9b2e3
  1. 6
      .github/workflows/aws_deploy.yml

6
.github/workflows/aws_deploy.yml

@ -86,7 +86,7 @@ jobs:
id: latestrelease id: latestrelease
if: inputs.environment == 'production' if: inputs.environment == 'production'
run: | run: |
echo "::set-output name=releasetag::$(curl -s https://api.github.com/repos/${REPO_URL}/releases/latest | jq '.tag_name' | sed 's/\"//g')" echo "releasetag=$(curl -s https://api.github.com/repos/${REPO_URL}/releases/latest | jq '.tag_name' | sed 's/\"//g')" >> $GITHUB_OUTPUT
- name: Confirm release tag - name: Confirm release tag
if: inputs.environment == 'production' if: inputs.environment == 'production'
@ -102,8 +102,8 @@ jobs:
- name: Get tags - name: Get tags
id: tags id: tags
run: | run: |
echo "::set-output name=commit-tag::$(if [[ ${{ inputs.environment == 'production' }} ]]; then echo $(git log -1 '--format=format:%H'); else echo ${{ github.sha }}; fi)" echo "commit-tag=$(if [[ ${{ inputs.environment == 'production' }} ]]; then echo $(git log -1 '--format=format:%H'); else echo ${{ github.sha }}; fi)" >> $GITHUB_OUTPUT
echo "::set-output name=additional-tag::$(if [[ ${{ inputs.environment == 'production' }} ]]; then echo ${{ steps.latestrelease.outputs.releasetag }}; else echo ${{ env.timestamp }}; fi)" echo "additional-tag=$(if [[ ${{ inputs.environment == 'production' }} ]]; then echo ${{ steps.latestrelease.outputs.releasetag }}; else echo ${{ env.timestamp }}; fi)" >> $GITHUB_OUTPUT
- name: Add environment tag to existing image - name: Add environment tag to existing image
env: env:

Loading…
Cancel
Save