Reputation: 29096
When I create a new workflow with GitHub Actions I have this cumbersome workflow:
.github/workflows/ci.yml
git commit --amend -mhope
git push -f
Is there any better alternative?
Upvotes: 8
Views: 3480
Reputation: 2175
If you want to test the whole workflow locally there is beautiful act project.
For testing an individual GitHub Action there is github-action-ts-run-api project.
Upvotes: 1
Reputation: 3929
You can add a workflow_dispatch
event to your on:
directive. This allows you to trigger the workflow from the Actions panel in your repo. Once you've finished testing it, you can remove the trigger from your workflow YAML.
The trigger in the Actions panel looks like this (bottom right "Run workflow"):
Upvotes: 6