Try curling number of PR
@@ -30,6 +30,12 @@ jobs:
echo "github.event.workflow_run.head_sha"
echo ${{ github.event.workflow_run.head_sha }}
+ echo "github.event.workflow_run.head_repository.html_url"
+ echo ${{ github.event.workflow_run.head_repository.html_url }}
+ echo "manual curl"
+ curl -H "Accept: application/vnd.github.groot-preview+json" https://api.github.com/repos/robintibor/braindecode-1/commits/0354654c543c5a17af86dcd1cd0961df9b5dc989/pulls 2>/dev/null | jq '.[0].number'
+ echo "automated curl"
+ curl -H "Accept: application/vnd.github.groot-preview+json" ${{ github.event.workflow_run.head_repository.html_url }}/commits/${{ github.event.workflow_run.head_sha }}/pulls 2>/dev/null | jq '.[0].number'
echo "steps.set-result.outputs.result"
echo "${{steps.set-result.outputs.result}}"
echo "PULL_NUMBER"
