From a5104a2e0aaa679fad406f8d62624cd190db1f6e Mon Sep 17 00:00:00 2001 From: Jaydeep Das Date: Sat, 12 Oct 2024 21:21:57 +0530 Subject: [PATCH] update action --- action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 18f60fd..a5f69b8 100644 --- a/action.yml +++ b/action.yml @@ -18,6 +18,9 @@ inputs: GITHUB_TOKEN: description: 'GitHub token for creating/updating comments' required: true + COMMIT_SHA: + description: 'The SHA of the commit that triggered the workflow' + required: true runs: using: "composite" @@ -56,6 +59,7 @@ runs: ACCOUNT_ID: ${{ inputs.ACCOUNT_ID }} PROJECT_NAME: ${{ inputs.PROJECT_NAME }} PR_BRANCH: ${{ github.head_ref }} + COMMIT_SHA: ${{ inputs.COMMIT_SHA }} run: | fetch_latest_deployment() { RESPONSE=$(curl -s -X GET \ @@ -184,7 +188,7 @@ runs: | Key | Value | | --- | ----- | | Branch | ${{ github.head_ref }} | - | Commit | ${{ github.sha }} | + | Commit | ${{ inputs.COMMIT_SHA }} | | Build Time | ${{ env.BUILD_TIME }} | | Status | ${{ env.BUILD_STATUS }} |