Skip to content

Commit

Permalink
Demo get info
Browse files Browse the repository at this point in the history
  • Loading branch information
islas committed Dec 13, 2024
1 parent 58466a6 commit fc1a478
Showing 1 changed file with 26 additions and 19 deletions.
45 changes: 26 additions & 19 deletions .github/workflows/entry_point.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,32 @@ jobs:
steps:
- name: Dispatch Regression Suite
run : |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ github.token }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${GITHUB_REPOSITORY}/actions/workflows/ci.yml/dispatches \
--data-binary @- << EOF
{
"ref" : "${{ github.event_name == 'push' && github.ref_name || github.event.pull_request.base.ref }}",
"inputs" :
{
"event_name" : "${{ github.event_name }}",
"event_number" : "${{ github.event.number }}",
"test" : "${{ github.event.label.name }}",
"ref" : "${{ github.ref }}",
"sha" : "${{ github.event_name == 'push' && github.sha || github.event.pull_request.head.sha }}"
}
}
EOF
echo "${{ github.event.pull_request.head.repo.fork }}"
echo "${{ github.event.pull_request.head.repo.full_name }}"
echo "${{ github.event.pull_request.head.repo.owner.name }}"
echo "${{ github.event.pull_request.head.repo.owner.id }}"
echo "${{ github.event.pull_request.head.repo.owner.url }}"
echo "${{ github.event.pull_request.head.repo.owner.repos_url }}"
echo "${{ github.event.pull_request.head.repo.owner }}"
# curl -L \
# -X POST \
# -H "Accept: application/vnd.github+json" \
# -H "Authorization: Bearer ${{ github.token }}" \
# -H "X-GitHub-Api-Version: 2022-11-28" \
# https://api.github.com/repos/${GITHUB_REPOSITORY}/actions/workflows/ci.yml/dispatches \
# --data-binary @- << EOF
# {
# "ref" : "${{ github.event_name == 'push' && github.ref_name || github.event.pull_request.base.ref }}",
# "inputs" :
# {
# "event_name" : "${{ github.event_name }}",
# "event_number" : "${{ github.event.number }}",
# "test" : "${{ github.event.label.name }}",
# "ref" : "${{ github.ref }}",
# "sha" : "${{ github.event_name == 'push' && github.sha || github.event.pull_request.head.sha }}"
# }
# }
# EOF

0 comments on commit fc1a478

Please sign in to comment.