Skip to content

Commit

Permalink
feat: supporting release events
Browse files Browse the repository at this point in the history
  • Loading branch information
cberg-aot committed Sep 24, 2024
1 parent 21f9351 commit 0a907b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ runs:
https://api.github.com/repos/${{ github.repository }}/commits/${{ github.event.after }}/pulls \
| jq .[0].number
)
elif [ ${{ github.event_name }} == 'release' ]
then
echo "Event type: release"
pr=$(\
curl -sL -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${{ inputs.token }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{ github.repository }}/commits/${{ github.event.after }}/pulls \
| jq .[0].number
)
if [ -z "${pr}" ]
then
Expand Down

0 comments on commit 0a907b6

Please sign in to comment.