Skip to content

Commit

Permalink
Revert "fix: improving github workflow to allow redeploy (#886)"
Browse files Browse the repository at this point in the history
This reverts commit d25c78e.
  • Loading branch information
BrianJiang2021 authored and libruce committed Dec 26, 2023
1 parent 676a5c1 commit 0762019
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
run: yarn build:${{ inputs.environment }}

- name: Calculate revision
run: echo "REVISION_TITLE=$(git rev-parse --short HEAD)-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}" >> $GITHUB_ENV
run: echo "GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c 1-6)" >> $GITHUB_ENV

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
"<script nomodule crossorigin src=\"https://cdn.bundleb2b.net/b2b/${{ inputs.environment }}/storefront/${poly_js}\"></script>",
"<script nomodule crossorigin src=\"https://cdn.bundleb2b.net/b2b/${{ inputs.environment }}/storefront/${indexLegacy_js}\"></script>"
],
"revisionTitle": "${REVISION_TITLE}"
"revisionTitle": "${GITHUB_SHA_SHORT}"
}
EOF
Expand All @@ -91,7 +91,7 @@ jobs:
{
"deploy_all": false,
"store_hashes": $(cat ${{ inputs.store_list }}),
"revision": "${REVISION_TITLE}"
"revision": "${GITHUB_SHA_SHORT}"
}
EOF
Expand All @@ -105,7 +105,7 @@ jobs:
--data-binary @- << EOF
{
"deploy_all": true,
"revision": "${REVISION_TITLE}"
"revision": "${GITHUB_SHA_SHORT}"
}
EOF
Expand Down

0 comments on commit 0762019

Please sign in to comment.