From ca36891e26795cb56a8dc448e055b26aeaa35d83 Mon Sep 17 00:00:00 2001 From: akshat2jain Date: Wed, 6 Dec 2023 22:01:54 +0530 Subject: [PATCH] added some more changes to github workflows --- .github/workflows/thankyou.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/thankyou.yaml b/.github/workflows/thankyou.yaml index 5cff293..ccb24ca 100644 --- a/.github/workflows/thankyou.yaml +++ b/.github/workflows/thankyou.yaml @@ -12,5 +12,6 @@ jobs: steps: - name: Thank You Message run: | - echo "Thank you for making the pull request, @${{ github.actor }}!" - echo "Your contribution is appreciated. 🙌" + PR_NUMBER=$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH") + COMMENT="Thank you for making the pull request, @${{ github.actor }}! Your contribution is appreciated. 🙌" + curl -sSL -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"body":"'"$COMMENT"'"}' -H "Content-Type: application/json" -X POST "https://api.github.com/repos/${{ github.repository }}/issues/${PR_NUMBER}/comments"