Is there any documentation available for for local running of act_runner exec
to test workflows?
I can successfully run the workflow locally however I do not understand how to override the event so that I can test tag version processing.
I can run a basic workflow:
act_runner exec --workflows "./.github/workflows/"
INFO[0000] Using the only detected workflow event: push
INFO[0000] Planning jobs for event: push
INFO[0000] cache handler listens on: http://192.168.252.107:33353
INFO[0000] Start server on http://192.168.252.107:34567
[Build and Deploy (name)/build_and_deploy] 🚀 Start image=gitea/runner-images:ubuntu-latest
[Build and Deploy (name)/build_and_deploy] 🐳 docker pull image=gitea/runner-images:ubuntu-latest platform= username= forcePull=false
[Build and Deploy (name)/build_and_deploy] Cleaning up network for job build_and_deploy, and network name is: GITEA-ACTIONS-TASK-push_WORKFLOW-Build-and-Deploy-name_JOB-build-and-deploy-build_and_deploy-network
[Build and Deploy (name)/build_and_deploy] 🐳 docker create image=gitea/runner-images:ubuntu-latest platform= entrypoint=["/bin/sleep" "10800"] cmd=[] network="GITEA-ACTIONS-TASK-push_WORKFLOW-Build-and-Deploy-name_JOB-build-and-deploy-build_and_deploy-network"
[Build and Deploy (name)/build_and_deploy] 🐳 docker run image=gitea/runner-images:ubuntu-latest platform= entrypoint=["/bin/sleep" "10800"] cmd=[] network="GITEA-ACTIONS-TASK-push_WORKFLOW-Build-and-Deploy-name_JOB-build-and-deploy-build_and_deploy-network"
[Build and Deploy (name)/build_and_deploy] ⭐ Run Main actions/checkout@v4
[Build and Deploy (name)/build_and_deploy] 🐳 docker cp src=/home/charris/dev/splunk-nas/. dst=/home/charris/dev/splunk-nas
[Build and Deploy (name)/build_and_deploy] ✅ Success - Main actions/checkout@v4
[Build and Deploy (name)/build_and_deploy] ⭐ Run Main dump context
[Build and Deploy (name)/build_and_deploy] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/1.sh] user= workdir=
| {
| repository: {
| default_branch: master
| }
| }
[Build and Deploy (name)/build_and_deploy] ✅ Success - Main dump context
[Build and Deploy (name)/build_and_deploy] ⭐ Run Main package unraid
[Build and Deploy (name)/build_and_deploy] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/2.sh] user= workdir=
[Build and Deploy (name)/build_and_deploy] ✅ Success - Main package unraid
[Build and Deploy (name)/build_and_deploy] Cleaning up container for job build_and_deploy
[Build and Deploy (name)/build_and_deploy] Cleaning up network for job build_and_deploy, and network name is: GITEA-ACTIONS-TASK-push_WORKFLOW-Build-and-Deploy-name_JOB-build-and-deploy-build_and_deploy-network
[Build and Deploy (name)/build_and_deploy] 🏁 Job succeeded
I am not sure how to inject a tag into the event:
act_runner exec --workflows "./.github/workflows/" --event '{"ref": "refs/tags/v1.0.0"}'
INFO[0000] Using chosed event for filtering: {"ref": "refs/tags/v1.0.0"}
INFO[0000] Planning jobs for event: {"ref": "refs/tags/v1.0.0"}
INFO[0000] cache handler listens on: http://192.168.252.107:34123
INFO[0000] Start server on http://192.168.252.107:34567