Github actions: Difference between revisions

From wikinotes
No edit summary
Line 15: Line 15:
|}
|}
</blockquote><!-- Documentation -->
</blockquote><!-- Documentation -->
= 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/ShopifyFRS/bourgeois/events | bat -l json
</syntaxhighlight>
</blockquote><!-- troubleshooting -->

Revision as of 14:13, 15 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

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/ShopifyFRS/bourgeois/events | bat -l json