Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 539 Bytes

README.test.md

File metadata and controls

29 lines (19 loc) · 539 Bytes

How to test

Act testing GitHub Actions

https://nektosact.com/usage/index.html

To simulate a git tag

  • Create a file with the following:
{
  "ref": "refs/tags/v1.99.91"
}
  • ../tmp2/act -W .github/workflows/push.yml -s GITHUB_TOKEN push -e /tmp/event_tag.json

To simulate a git branch

  • Create a file with the following (might work if currently in a branch)
{
  "ref": "refs/heads/act-test-leaf"
}
  • ../tmp2/act -W .github/workflows/push.yml -s GITHUB_TOKEN push -e /tmp/event_branch.json