Github actions: Difference between revisions
From wikinotes
No edit summary |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 15: | Line 15: | ||
|} | |} | ||
</blockquote><!-- Documentation --> | </blockquote><!-- Documentation --> | ||
= Notes = | |||
<blockquote> | |||
{| | |||
| [[github actions: community actions]] | |||
|} | |||
</blockquote><!-- Notes --> | |||
= Troubleshooting = | |||
<blockquote> | |||
<syntaxhighlight lang="bash"> | |||
# list all webhook events (ex. pull_request) on repository | |||
curl -L \ | |||
-H "Accept: application/vnd.github+json" \ | |||
-H "Authorization: Bearer ${OAUTH_TOKEN}" \ | |||
-H "X-GitHub-Api-Version: 2022-11-28" \ | |||
'https://api.github.com/repos/${org}/${repo}/events?page=1&per_page=100' | bat -l json | |||
</syntaxhighlight> | |||
</blockquote><!-- troubleshooting --> |
Latest revision as of 14:49, 20 September 2023
Github actions let you subscribe to events and run server jobs.
Documentation
official docs https://docs.github.com/en/actions community actions https://github.com/marketplace?type=actions events triggering workflows ( on: ${event}
)https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows expression syntax https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions
Notes
github actions: community actions
Troubleshooting
# list all webhook events (ex. pull_request) on repository curl -L \ -H "Accept: application/vnd.github+json" \ -H "Authorization: Bearer ${OAUTH_TOKEN}" \ -H "X-GitHub-Api-Version: 2022-11-28" \ 'https://api.github.com/repos/${org}/${repo}/events?page=1&per_page=100' | bat -l json