ngx-admin/.github/workflows/ACTION_TRIGGER_GUIDE.md
2022-04-27 18:11:45 +03:00

892 B

Actions deploy guide

In order to trigger workflow action you should execute the following curl (docs):

curl \
  -X POST \
  -H "Accept: application/vnd.github.v3+json" \
  -H "Authorization: token <ACCESS_TOKEN>" \
  https://api.github.com/repos/akveo/ngx-admin/actions/workflows/<WORKFLOW_ID>/dispatches \
  -d '{"ref":"<REF>","inputs":{"name":"Mona the Octocat","home":"San Francisco, CA"}}'

Parameters:

  • WORKFLOW_ID - the workflow id or its file name (e.g. azureCliDeploy.yml)
  • ACCESS_TOKEN: A personal access token. Creating a personal access token guide
  • REF: Required. The git reference for the workflow. The reference can be a branch or tag name. ('demo')