Skip to content

Commit

Permalink
Merge pull request #251 from DFE-Digital/github-workflows-azure-storage
Browse files Browse the repository at this point in the history
Fix: Specified name of file for upload
  • Loading branch information
DrizzlyOwl authored Nov 16, 2023
2 parents 82eea9c + cd0cc03 commit 7e5a909
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ jobs:
ref: ${{ github.ref }}

- name: Set SHA environment variable
if: ${{ github.event_name == 'push' }}
run: |
echo "LAST_COMMIT_SHA=${GITHUB_SHA}" >> $GITHUB_ENV
echo "LAST_COMMIT_SHA=${GITHUB_SHA:(-7)}" >> $GITHUB_ENV
- uses: actions/setup-node@v3
name: Set up Node.js
Expand Down Expand Up @@ -86,10 +85,12 @@ jobs:
with:
azcliversion: 2.53.0
inlineScript: |
GIT_REF=${{ github.base_ref }}
GIT_BRANCH=${GIT_REF//\//-}
az storage blob upload \
--container-name ${{ secrets.CI_REPORTS_STORAGE_CONTAINER_NAME }} \
--account-name ${{ secrets.CI_REPORTS_STORAGE_ACCOUNT_NAME }} \
--file "./tests/playwright/${{ inputs.environment }}-${{ env.LAST_COMMIT_SHA }}.zip" \
--name "Dfe.FindInformationAcademiesTrusts/playwright-report/" \
--name "Dfe.FindInformationAcademiesTrusts/$GIT_BRANCH/test-deployment-${{ env.LAST_COMMIT_SHA }}.zip" \
--auth-mode login \
--overwrite

0 comments on commit 7e5a909

Please sign in to comment.