Github actions: Difference between revisions
From wikinotes
No edit summary |
No edit summary |
||
(2 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 = | = Troubleshooting = | ||
Line 24: | Line 31: | ||
-H "Authorization: Bearer ${OAUTH_TOKEN}" \ | -H "Authorization: Bearer ${OAUTH_TOKEN}" \ | ||
-H "X-GitHub-Api-Version: 2022-11-28" \ | -H "X-GitHub-Api-Version: 2022-11-28" \ | ||
https://api.github.com/repos/ | 'https://api.github.com/repos/${org}/${repo}/events?page=1&per_page=100' | bat -l json | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</blockquote><!-- troubleshooting --> | </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