Skip to content

Commit d83df8a

Browse files
committed
.
1 parent 25f44f1 commit d83df8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
id: get_head
1616
run: |
1717
set -euo pipefail
18-
query='query pullRequestDetails { repository(name: \"${{ github.repository.name }}\", owner: \"${{ github.repository_owner }}\") { pullRequest(number: 416) { headRef { target { oid } } headRepository { sshUrl } } } }'
18+
query='query pullRequestDetails { repository(name: \"${{ github.event.repository.name }}\", owner: \"${{ github.repository_owner }}\") { pullRequest(number: 416) { headRef { target { oid } } headRepository { sshUrl } } } }'
1919
result=$(curl -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -X POST -d " { \"query\": \"$query\" } " https://api.github.com/graphql)
2020
echo "result: $result"
2121
sha=$(echo "$result" | jq -r '.data.repository.pullRequest.headRef.target.oid')

0 commit comments

Comments
 (0)