From 20bf2883f0480a2d2d2989ab50137d41619aff9e Mon Sep 17 00:00:00 2001 From: Kirill Sizov Date: Wed, 28 Sep 2022 11:57:46 +0300 Subject: [PATCH] Full check: use SHA instead of branch name (#5009) --- .github/workflows/comment.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/comment.yml b/.github/workflows/comment.yml index 0a2b54f59..2b383930e 100644 --- a/.github/workflows/comment.yml +++ b/.github/workflows/comment.yml @@ -37,8 +37,8 @@ jobs: - name: Get branch name id: get-ref run: | - BRANCH=$(gh api /repos/${{ github.repository }}/pulls/${{ github.event.issue.number }} | jq -r '.head.ref') - echo ::set-output name=ref::${BRANCH} + SHA=$(gh api /repos/${{ github.repository }}/pulls/${{ github.event.issue.number }} | jq -r '.head.sha') + echo ::set-output name=ref::${SHA} - name: Send comment. Test are executing id: send-status -- GitLab