Skip to content

Commit

Permalink
fix api url
Browse files Browse the repository at this point in the history
  • Loading branch information
UmairJibran committed May 21, 2023
1 parent df676c2 commit eca18c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ runs:
PR_NUMBER=$(echo "${{ github.event.pull_request.url }}" | awk -F'/' '{print $NF}')
echo "CREATING COMMENT BODY AND API URL"
COMMENT="PR #$PR_NUMBER merged successfully in [${{ env.TARGET_BRANCH }}](https://github.com/${{ env.GITHUB_REPOSITORY }}/tree/${{ env.TARGET_BRANCH }})"
API_URL="${{ env.GITHUB_API_URL }}/repos/${{ github.repository }}/issues/${PR_NUMBER}/comments"
API_URL="https://api.github.com/repos/${{ github.repository }}/issues/${PR_NUMBER}/comments"
echo "POSTING COMMENT ON PR"
curl -X POST -H "Authorization: Bearer ${{ env.GITHUB_PAT }}" -d "{\"body\":\"$COMMENT\"}" $API_URL
Expand Down

0 comments on commit eca18c8

Please sign in to comment.