@@ -57,15 +57,16 @@ jobs:
5757 cp temp-dist/plotly.js "upload/pr-$PR_NUM/$SHA/plotly.js"
5858 cp temp-dist/plotly.min.js "upload/pr-$PR_NUM/$SHA/plotly.min.js"
5959 cp temp-dist/plot-schema.json "upload/pr-$PR_NUM/$SHA/plot-schema.json"
60- cp -r "upload/pr-$PR_NUM/$SHA/plotly.js " "upload/pr-$PR_NUM/latest"
60+ cp -r "upload/pr-$PR_NUM/$SHA/" "upload/pr-$PR_NUM/latest/ "
6161
6262 UPLOAD_DIR_PATH=$(pwd)/upload/
6363
64- echo "Created directory ${UPLOAD_DIR_PATH} with the following full contents:"
64+ echo "Created directory ${UPLOAD_DIR_PATH} with the following contents:"
6565 echo "$(ls -lR ${UPLOAD_DIR_PATH})"
6666
6767 echo "PR_NUM=$PR_NUM" >> $GITHUB_OUTPUT
6868 echo "SHA=$SHA" >> $GITHUB_OUTPUT
69+ echo "SHORT_SHA=${SHA::7}" >> $GITHUB_OUTPUT
6970
7071 - name : Generate GitHub App token
7172 id : generate-token
8889 run : |
8990 # 1. Move 'upload' directory into repo folder and cd into repo root
9091 mkdir -p plotly.js-dev-builds/upload/
91- cp -r upload/* plotly.js-dev-builds/upload/
92+ cp -r upload/ plotly.js-dev-builds/upload/
9293 cd plotly.js-dev-builds
9394
9495 # 2. Configure git
@@ -102,7 +103,7 @@ jobs:
102103 if git diff --staged --quiet; then
103104 echo "No changes to commit"
104105 else
105- git commit -m "Deploy build for PR #${{ steps.setup-metadata.outputs.PR_NUM }} - SHA ${{ steps.setup-metadata.outputs.SHA }}"
106+ git commit -m "Deploy build for PR #${{ steps.setup-metadata.outputs.PR_NUM }} (commit ${{ steps.setup-metadata.outputs.SHORT_SHA }}) "
106107 git push origin main
107108 fi
108109
0 commit comments