dotnet / docfx

Static site generator for .NET API documentation.
https://dotnet.github.io/docfx/
MIT License
3.94k stars 840 forks source link

chore: Add `workflow_dispatch` trigger to CI workflow #9959

Closed filzrev closed 1 month ago

filzrev commented 1 month ago

This PR add workflow_dispatch trigger to CI workflow.

It's expected to be used to re-run workflow when failed test on CI. And to invoke CI workflow from snapshot update workflow (#9831)

Usage This PR need to be merged to main branch to invoke workflow. After PR merged. User who have write permission to repository can invoke workflow by following ways.

  1. GitHub Action Web UI
  2. gh command line interface.

Example of gh command to invoke CI workflow on specified branch`

gh workflow run ci.yml --repo dotnet/docfx --ref test-branch