Skip to content

Commit

Permalink
fix: change ref_name
Browse files Browse the repository at this point in the history
  • Loading branch information
BytePender committed Dec 16, 2024
1 parent fa48ab7 commit 78041b0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,16 @@ jobs:
# Post coverage report as comment (in 3 steps)
- name: Find PR ID
run: |
echo "GITHUB_REF: $GITHUB_REF"
echo "GITHUB_HEAD_REF: $GITHUB_HEAD_REF"
echo "GITHUB_BASE_REF: $GITHUB_BASE_REF"
echo "GITHUB_REPOSITORY: $GITHUB_REPOSITORY"
echo "GITHUB_EVENT_NAME: $GITHUB_EVENT_NAME"
echo "github.repository_owner: ${{github.repository_owner}}"
echo "github.ref_name: ${{github.ref_name}}"
echo "github.head_ref: ${{github.head_ref}}"
PR_DATA=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
"https://api.github.com/repos/${{ github.repository }}/pulls?head=${{ github.repository_owner }}:${{ github.ref_name }}&state=open")
"https://api.github.com/repos/${{ github.repository }}/pulls?head=${{ github.repository_owner }}:${{ github.head_ref }}&state=open")
echo "PR Data: ${PR_DATA}"
PR_ID=$(echo "$PR_DATA" | jq -r '.[0].number')
Expand Down

0 comments on commit 78041b0

Please sign in to comment.