From 2c9dd5a896654d1088cf566ce1125730ccf7666a Mon Sep 17 00:00:00 2001 From: Gwenn Le Bihan Date: Sat, 15 Mar 2025 12:26:24 +0100 Subject: [PATCH] Include build commit in sticky comment --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 8637d86..31bcb84 100644 --- a/action.yml +++ b/action.yml @@ -116,6 +116,7 @@ runs: pages_base_url: ${{ inputs.pages-base-url }} pages_base_path: ${{ inputs.pages-base-path }} pr_number: ${{ github.event.number }} + build_commit: ${{ github.sha }} github_action_ref: ${{ github.action_ref }} github_action_repository: ${{ github.action_repository }} deployment_repository: ${{ inputs.deploy-repository }} @@ -148,7 +149,7 @@ runs: [PR Preview Action](https://github.com/${{ env.action_repository }}) ${{ env.action_version }} :---: |

:rocket: View preview at
${{ env.preview_url }}

- |
Built to branch [`${{ inputs.preview-branch }}`](${{ github.server_url }}/${{ inputs.deploy-repository }}/tree/${{ inputs.preview-branch }}) at ${{ env.action_start_time }}.
Preview will be ready when the [GitHub Pages deployment](${{ github.server_url }}/${{ inputs.deploy-repository }}/deployments) is complete.

+ |
Built to branch [`${{ inputs.preview-branch }}`](${{ github.server_url }}/${{ inputs.deploy-repository }}/tree/${{ inputs.preview-branch }}) against ${{ env.build_commit }} at ${{ env.action_start_time }}.
Preview will be ready when the [GitHub Pages deployment](${{ github.server_url }}/${{ inputs.deploy-repository }}/deployments) is complete.

- name: Remove preview directory if: env.deployment_action == 'remove'