From 6ac4d2e96d3e60ff4811a06d9f5c5c79a84c1f7f Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Mon, 6 Feb 2023 21:51:39 +0800 Subject: [PATCH 01/14] Fix deployment of docs to netlify --- .github/workflows/doc-build.yml | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/.github/workflows/doc-build.yml b/.github/workflows/doc-build.yml index 0b17c199ac4..a934ad08d1b 100644 --- a/.github/workflows/doc-build.yml +++ b/.github/workflows/doc-build.yml @@ -42,35 +42,18 @@ jobs: mkdir -p ./docs cp -r -L /sage/local/share/doc/sage/html/en/* ./docs - - name: Deploy to Netlify preview - id: preview-netlify - if: env.CAN_DEPLOY == 'true' && github.ref != 'refs/heads/develop' - uses: netlify/actions/cli@master - with: - args: deploy --dir=docs --alias="${NETLIFY_ALIAS}" - env: - # Set deployment url to commit hash to easily link from the trac. - # We could also set NETLIFY_ALIAS to the branch name. - # However, netlify currently doesn't support updates to a deployment with the same alias - # https://github.com/netlify/cli/issues/948 - # https://github.com/netlify/cli/issues/1984 - # Note that even if this feature is implemented, one would also need to first process the branch name - # to workaround the bug https://github.com/netlify/cli/issues/969. - NETLIFY_ALIAS: ${{ github.sha }} - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - - name: Deploy to Netlify production id: deploy-netlify - if: env.CAN_DEPLOY == 'true' && github.ref == 'refs/heads/develop' + if: env.CAN_DEPLOY == 'true' uses: netlify/actions/cli@master with: - args: deploy --dir=docs --prod + args: deploy --dir=docs --prod="${NETLIFY_PRODUCTION}" env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + NETLIFY_PRODUCTION: ${{ github.ref == 'refs/heads/develop' }} - name: Report deployment url if: env.CAN_DEPLOY == 'true' run: | - echo "::notice::The documentation has being automatically deployed to Netlify. %0A ✅ Preview: ${{ steps.preview-netlify.outputs.NETLIFY_URL || steps.deploy-netlify.outputs.NETLIFY_URL }}" + echo "::notice::The documentation has being automatically deployed to Netlify. %0A ✅ Preview: ${{ steps.deploy-netlify.outputs.NETLIFY_URL }}" From 9c21a235ed991c955a0c78e77667e4cd891d5c1f Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Mon, 6 Feb 2023 23:11:56 +0800 Subject: [PATCH 02/14] fix command --- .github/workflows/doc-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/doc-build.yml b/.github/workflows/doc-build.yml index a934ad08d1b..885ec1d0ccf 100644 --- a/.github/workflows/doc-build.yml +++ b/.github/workflows/doc-build.yml @@ -47,7 +47,7 @@ jobs: if: env.CAN_DEPLOY == 'true' uses: netlify/actions/cli@master with: - args: deploy --dir=docs --prod="${NETLIFY_PRODUCTION}" + args: deploy --dir=docs ${NETLIFY_PRODUCTION:+"--prod"} env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} From 676362e6eaa58ca80485331c55fb5a233a889941 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Tue, 7 Feb 2023 15:43:07 +0800 Subject: [PATCH 03/14] Add separate workflow with privileges --- .github/workflows/doc-build.yml | 21 +++--------- .github/workflows/doc-publish.yml | 57 +++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 17 deletions(-) create mode 100644 .github/workflows/doc-publish.yml diff --git a/.github/workflows/doc-build.yml b/.github/workflows/doc-build.yml index 885ec1d0ccf..a4a7bbad2e6 100644 --- a/.github/workflows/doc-build.yml +++ b/.github/workflows/doc-build.yml @@ -15,8 +15,6 @@ jobs: build-docs: runs-on: ubuntu-latest container: ghcr.io/sagemath/sage/sage-docker-ubuntu-focal-standard-with-targets:dev - env: - CAN_DEPLOY: ${{ secrets.NETLIFY_AUTH_TOKEN != '' }} steps: - name: Checkout uses: actions/checkout@v3 @@ -34,7 +32,6 @@ jobs: SAGE_NUM_THREADS: 2 - name: Copy docs - if: env.CAN_DEPLOY == 'true' run: | # For some reason the deploy step below cannot find /sage/... # So copy everything from there to local folder @@ -42,18 +39,8 @@ jobs: mkdir -p ./docs cp -r -L /sage/local/share/doc/sage/html/en/* ./docs - - name: Deploy to Netlify production - id: deploy-netlify - if: env.CAN_DEPLOY == 'true' - uses: netlify/actions/cli@master + - name: Upload docs + uses: actions/upload-artifact@v2 with: - args: deploy --dir=docs ${NETLIFY_PRODUCTION:+"--prod"} - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - NETLIFY_PRODUCTION: ${{ github.ref == 'refs/heads/develop' }} - - - name: Report deployment url - if: env.CAN_DEPLOY == 'true' - run: | - echo "::notice::The documentation has being automatically deployed to Netlify. %0A ✅ Preview: ${{ steps.deploy-netlify.outputs.NETLIFY_URL }}" + name: docs + path: docs/ diff --git a/.github/workflows/doc-publish.yml b/.github/workflows/doc-publish.yml new file mode 100644 index 00000000000..fefeb6e49c9 --- /dev/null +++ b/.github/workflows/doc-publish.yml @@ -0,0 +1,57 @@ +name: Publish documentation + +on: + workflow_run: + workflows: ["Build documentation"] + types: + - completed + +jobs: + upload-docs: + runs-on: ubuntu-latest + if: > + github.event.workflow_run.event == 'pull_request' && + github.event.workflow_run.conclusion == 'success' && + secrets.NETLIFY_AUTH_TOKEN != '' + steps: + # Once https://github.com/actions/download-artifact/issues/172 is implemented, we can use the official download-artifact action + # For now use the solution from https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow + - name: Download docs + uses: actions/github-script@v3.1.0 + with: + script: | + var artifacts = await github.actions.listWorkflowRunArtifacts({ + owner: context.repo.owner, + repo: context.repo.repo, + run_id: ${{github.event.workflow_run.id }}, + }); + var matchArtifact = artifacts.data.artifacts.filter((artifact) => { + return artifact.name == "docs" + })[0]; + var download = await github.actions.downloadArtifact({ + owner: context.repo.owner, + repo: context.repo.repo, + artifact_id: matchArtifact.id, + archive_format: 'zip', + }); + var fs = require('fs'); + fs.writeFileSync('${{github.workspace}}/docs.zip', Buffer.from(download.data)); + - name: Extract docs + run: unzip docs.zip + + - name: Deploy to Netlify production + id: deploy-netlify + if: env.CAN_DEPLOY == 'true' + uses: netlify/actions/cli@master + with: + args: deploy --dir=docs ${NETLIFY_PRODUCTION:+"--prod"} + env: + NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} + NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} + NETLIFY_PRODUCTION: ${{ github.ref == 'refs/heads/develop' }} + + - name: Report deployment url + if: env.CAN_DEPLOY == 'true' + run: | + echo "::notice::The documentation has being automatically deployed to Netlify. %0A ✅ Preview: ${{ steps.deploy-netlify.outputs.NETLIFY_URL }}" + From 751fb794e462886e50d58229a7fa15baae0c23af Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Tue, 7 Feb 2023 16:02:34 +0800 Subject: [PATCH 04/14] fix doc publish workflow --- .github/workflows/doc-publish.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/doc-publish.yml b/.github/workflows/doc-publish.yml index fefeb6e49c9..dbba35a3a7c 100644 --- a/.github/workflows/doc-publish.yml +++ b/.github/workflows/doc-publish.yml @@ -41,7 +41,6 @@ jobs: - name: Deploy to Netlify production id: deploy-netlify - if: env.CAN_DEPLOY == 'true' uses: netlify/actions/cli@master with: args: deploy --dir=docs ${NETLIFY_PRODUCTION:+"--prod"} @@ -51,7 +50,6 @@ jobs: NETLIFY_PRODUCTION: ${{ github.ref == 'refs/heads/develop' }} - name: Report deployment url - if: env.CAN_DEPLOY == 'true' run: | echo "::notice::The documentation has being automatically deployed to Netlify. %0A ✅ Preview: ${{ steps.deploy-netlify.outputs.NETLIFY_URL }}" From 3bf6ed815e0e6686d01c96a7264a1cb761d815f7 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Wed, 8 Feb 2023 18:20:02 +0800 Subject: [PATCH 05/14] Increase performance by uploading only one single zip file --- .github/workflows/doc-build.yml | 6 ++++-- .github/workflows/doc-publish.yml | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/doc-build.yml b/.github/workflows/doc-build.yml index a4a7bbad2e6..3fe7f9dd730 100644 --- a/.github/workflows/doc-build.yml +++ b/.github/workflows/doc-build.yml @@ -38,9 +38,11 @@ jobs: # We also need to replace the symlinks because netlify is not following them mkdir -p ./docs cp -r -L /sage/local/share/doc/sage/html/en/* ./docs + # Zip everything for increased performance + zip -r docs.zip docs - name: Upload docs - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: docs - path: docs/ + path: docs.zip diff --git a/.github/workflows/doc-publish.yml b/.github/workflows/doc-publish.yml index dbba35a3a7c..6b9bc7b7f82 100644 --- a/.github/workflows/doc-publish.yml +++ b/.github/workflows/doc-publish.yml @@ -37,13 +37,13 @@ jobs: var fs = require('fs'); fs.writeFileSync('${{github.workspace}}/docs.zip', Buffer.from(download.data)); - name: Extract docs - run: unzip docs.zip + run: unzip docs.zip && unzip docs/docs.zip - name: Deploy to Netlify production id: deploy-netlify uses: netlify/actions/cli@master with: - args: deploy --dir=docs ${NETLIFY_PRODUCTION:+"--prod"} + args: deploy --dir=docs/docs ${NETLIFY_PRODUCTION:+"--prod"} env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} From 5e544930a45fb8fcb9d3dbf12569e7a49e52fbc2 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Wed, 8 Feb 2023 19:25:54 +0800 Subject: [PATCH 06/14] install zip --- .github/workflows/doc-build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/doc-build.yml b/.github/workflows/doc-build.yml index 3fe7f9dd730..1cc9cf8cd3f 100644 --- a/.github/workflows/doc-build.yml +++ b/.github/workflows/doc-build.yml @@ -21,6 +21,7 @@ jobs: - name: Prepare run: | + apt-get update && apt-get install -y zip # Reuse built SAGE_LOCAL contained in the Docker image ./bootstrap ./configure --enable-build-as-root --prefix=/sage/local --with-sage-venv --enable-download-from-upstream-url From 5ef9372084221ec1c8fb5a6400f75f7a330fbfbf Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Wed, 8 Feb 2023 19:36:41 +0800 Subject: [PATCH 07/14] use env variable in if instead of secret --- .github/workflows/doc-publish.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/doc-publish.yml b/.github/workflows/doc-publish.yml index 6b9bc7b7f82..86230a21aea 100644 --- a/.github/workflows/doc-publish.yml +++ b/.github/workflows/doc-publish.yml @@ -12,7 +12,9 @@ jobs: if: > github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' && - secrets.NETLIFY_AUTH_TOKEN != '' + env.NETLIFY_AUTH_TOKEN_PRESENT + env: + NETLIFY_AUTH_TOKEN_PRESENT: ${{ secrets.NETLIFY_AUTH_TOKEN != '' }} steps: # Once https://github.com/actions/download-artifact/issues/172 is implemented, we can use the official download-artifact action # For now use the solution from https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow From 1a416e37cece4ff035f2b4bb6e632ac77df6c631 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Wed, 8 Feb 2023 19:37:53 +0800 Subject: [PATCH 08/14] okay, simply remove the check then --- .github/workflows/doc-publish.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/doc-publish.yml b/.github/workflows/doc-publish.yml index 86230a21aea..b544e4ca817 100644 --- a/.github/workflows/doc-publish.yml +++ b/.github/workflows/doc-publish.yml @@ -11,10 +11,7 @@ jobs: runs-on: ubuntu-latest if: > github.event.workflow_run.event == 'pull_request' && - github.event.workflow_run.conclusion == 'success' && - env.NETLIFY_AUTH_TOKEN_PRESENT - env: - NETLIFY_AUTH_TOKEN_PRESENT: ${{ secrets.NETLIFY_AUTH_TOKEN != '' }} + github.event.workflow_run.conclusion == 'success' steps: # Once https://github.com/actions/download-artifact/issues/172 is implemented, we can use the official download-artifact action # For now use the solution from https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow From c456d6a22a70bf4d065ddecb2c142b612824d9a0 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Wed, 8 Feb 2023 22:06:18 +0800 Subject: [PATCH 09/14] always run publish job --- .github/workflows/doc-publish.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/doc-publish.yml b/.github/workflows/doc-publish.yml index b544e4ca817..6f9d4c90242 100644 --- a/.github/workflows/doc-publish.yml +++ b/.github/workflows/doc-publish.yml @@ -9,9 +9,7 @@ on: jobs: upload-docs: runs-on: ubuntu-latest - if: > - github.event.workflow_run.event == 'pull_request' && - github.event.workflow_run.conclusion == 'success' + if: github.event.workflow_run.conclusion == 'success' steps: # Once https://github.com/actions/download-artifact/issues/172 is implemented, we can use the official download-artifact action # For now use the solution from https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow From f936e0bde0759ae11678980e38403dd3fc387199 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Thu, 9 Feb 2023 07:18:36 +0800 Subject: [PATCH 10/14] specify output dir for unzip --- .github/workflows/doc-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/doc-publish.yml b/.github/workflows/doc-publish.yml index 6f9d4c90242..229352e061f 100644 --- a/.github/workflows/doc-publish.yml +++ b/.github/workflows/doc-publish.yml @@ -34,7 +34,7 @@ jobs: var fs = require('fs'); fs.writeFileSync('${{github.workspace}}/docs.zip', Buffer.from(download.data)); - name: Extract docs - run: unzip docs.zip && unzip docs/docs.zip + run: unzip docs.zip -d docs && unzip docs/docs.zip -d docs/docs - name: Deploy to Netlify production id: deploy-netlify From ac16cd740d37372f16609f164e4dd2b37e335f89 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Thu, 9 Feb 2023 22:57:53 +0800 Subject: [PATCH 11/14] extend deploy workflow --- .github/workflows/doc-publish.yml | 44 ++++++++++++++++++++++++++++--- 1 file changed, 41 insertions(+), 3 deletions(-) diff --git a/.github/workflows/doc-publish.yml b/.github/workflows/doc-publish.yml index 229352e061f..529a81fb235 100644 --- a/.github/workflows/doc-publish.yml +++ b/.github/workflows/doc-publish.yml @@ -1,3 +1,5 @@ +# Triggers after the documentation build has finished, +# taking the artifact and uploading it to netlify name: Publish documentation on: @@ -11,7 +13,14 @@ jobs: runs-on: ubuntu-latest if: github.event.workflow_run.conclusion == 'success' steps: - # Once https://github.com/actions/download-artifact/issues/172 is implemented, we can use the official download-artifact action + - name: Get information about workflow origin + uses: potiuk/get-workflow-origin@v1_5 + id: source-run-info + with: + token: ${{ secrets.GITHUB_TOKEN }} + sourceRunId: ${{ github.event.workflow_run.id }} + + # Once https://github.com/actions/download-artifact/issues/172 and/or https://github.com/actions/download-artifact/issues/60 is implemented, we can use the official download-artifact action # For now use the solution from https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#using-data-from-the-triggering-workflow - name: Download docs uses: actions/github-script@v3.1.0 @@ -33,18 +42,47 @@ jobs: }); var fs = require('fs'); fs.writeFileSync('${{github.workspace}}/docs.zip', Buffer.from(download.data)); + - name: Extract docs run: unzip docs.zip -d docs && unzip docs/docs.zip -d docs/docs - - name: Deploy to Netlify production + - name: Deploy to Netlify id: deploy-netlify uses: netlify/actions/cli@master with: - args: deploy --dir=docs/docs ${NETLIFY_PRODUCTION:+"--prod"} + args: deploy --dir=docs/docs/docs ${NETLIFY_PRODUCTION:+"--prod"} --message ${NETLIFY_MESSAGE} --alias ${NETLIFY_ALIAS} env: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} NETLIFY_PRODUCTION: ${{ github.ref == 'refs/heads/develop' }} + NETLIFY_MESSAGE: ${{ source-run-info.outputs.pullRequestNumber }} + NETLIFY_ALIAS: deploy-preview-${{ source-run-info.outputs.pullRequestNumber }} + + # Add deployment as status check, PR comment and annotation + # we could use the nwtgck/actions-netlify action for that, except for that it is not (yet) working in workflow_run context: https://github.com/nwtgck/actions-netlify/issues/545 + - name: Add/Update deployment status PR comment + uses: marocchino/sticky-pull-request-comment@v2 + with: + number: ${{ source-run-info.outputs.pullRequestNumber }} + header: preview-comment + recreate: true + message: | + [Documentation preview for this PR](${{ steps.deploy-netlify.outputs.NETLIFY_URL }}) is ready! :tada: + Built with commit: ${{ env.PR_HEADSHA }} + + - name: Update deployment status PR check + uses: myrotvorets/set-commit-status-action@1.1.6 + if: ${{ always() }} + env: + DEPLOY_SUCCESS: Successfully deployed preview. + DEPLOY_FAILURE: Failed to deploy preview. + with: + token: ${{ secrets.GITHUB_TOKEN }} + status: ${{ job.status == 'success' && 'success' || 'failure' }} + sha: ${{ github.event.workflow_run.head_sha }} + context: Deploy Documentation + targetUrl: ${{ steps.deploy-netlify.outputs.NETLIFY_URL }} + description: ${{ job.status == 'success' && env.DEPLOY_SUCCESS || env.DEPLOY_FAILURE }} - name: Report deployment url run: | From 56ee2ac33af363dce4d2c83a4092cad54d3a56f6 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Fri, 10 Feb 2023 07:27:29 +0800 Subject: [PATCH 12/14] fix output reference --- .github/workflows/doc-publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/doc-publish.yml b/.github/workflows/doc-publish.yml index 529a81fb235..d2cb854fd06 100644 --- a/.github/workflows/doc-publish.yml +++ b/.github/workflows/doc-publish.yml @@ -55,15 +55,15 @@ jobs: NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} NETLIFY_PRODUCTION: ${{ github.ref == 'refs/heads/develop' }} - NETLIFY_MESSAGE: ${{ source-run-info.outputs.pullRequestNumber }} - NETLIFY_ALIAS: deploy-preview-${{ source-run-info.outputs.pullRequestNumber }} + NETLIFY_MESSAGE: ${{ steps.source-run-info.outputs.pullRequestNumber }} + NETLIFY_ALIAS: deploy-preview-${{ steps.source-run-info.outputs.pullRequestNumber }} # Add deployment as status check, PR comment and annotation # we could use the nwtgck/actions-netlify action for that, except for that it is not (yet) working in workflow_run context: https://github.com/nwtgck/actions-netlify/issues/545 - name: Add/Update deployment status PR comment uses: marocchino/sticky-pull-request-comment@v2 with: - number: ${{ source-run-info.outputs.pullRequestNumber }} + number: ${{ steps.source-run-info.outputs.pullRequestNumber }} header: preview-comment recreate: true message: | From 27b1adaebf11669817ba38b82abc6f5651f56f25 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Fri, 10 Feb 2023 19:20:35 +0800 Subject: [PATCH 13/14] add required permissions --- .github/workflows/doc-publish.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/doc-publish.yml b/.github/workflows/doc-publish.yml index d2cb854fd06..022883efaa8 100644 --- a/.github/workflows/doc-publish.yml +++ b/.github/workflows/doc-publish.yml @@ -8,6 +8,11 @@ on: types: - completed +permissions: + statuses: write + checks: write + pull-requests: write + jobs: upload-docs: runs-on: ubuntu-latest From 0a676e1009ac9e33978758c28b26cd756e852c08 Mon Sep 17 00:00:00 2001 From: Tobias Diez Date: Fri, 10 Feb 2023 21:29:11 +0800 Subject: [PATCH 14/14] Fix commit sha --- .github/workflows/doc-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/doc-publish.yml b/.github/workflows/doc-publish.yml index 022883efaa8..c7be4a46d3b 100644 --- a/.github/workflows/doc-publish.yml +++ b/.github/workflows/doc-publish.yml @@ -73,7 +73,7 @@ jobs: recreate: true message: | [Documentation preview for this PR](${{ steps.deploy-netlify.outputs.NETLIFY_URL }}) is ready! :tada: - Built with commit: ${{ env.PR_HEADSHA }} + Built with commit: ${{ steps.source-run-info.outputs.sourceHeadSha }} - name: Update deployment status PR check uses: myrotvorets/set-commit-status-action@1.1.6