act version: 0.2.49
GOOS: linux
GOARCH: amd64
NumCPU: 8
Docker host: DOCKER_HOST environment variable is not set
Sockets found:
/var/run/docker.sock
Config files:
/home/*******/.actrc:
-P ubuntu-latest=node:16-buster-slim
-P ubuntu-22.04=node:16-bullseye-slim
-P ubuntu-20.04=node:16-buster-slim
-P ubuntu-18.04=node:16-buster-slim
Build info:
Go version: go1.20.6
Module path: github.com/nektos/act
Main version: (devel)
Main path: github.com/nektos/act
Main checksum:
Build settings:
-buildmode: exe
-compiler: gc
-ldflags: -s -w -X main.version=0.2.49 -X main.commit=d5d854854651c151ecd914bb6e2e370e0057929a -X main.date=2023-08-01T02:21:56Z -X main.builtBy=goreleaser
CGO_ENABLED: 0
GOARCH: amd64
GOOS: linux
GOAMD64: v1
vcs: git
vcs.revision: d5d854854651c151ecd914bb6e2e370e0057929a
vcs.time: 2023-08-01T02:21:38Z
vcs.modified: false
Docker Engine:
Engine version: 24.0.6
Engine runtime: runc
Cgroup version: 2
Cgroup driver: systemd
Storage driver: overlay2
Registry URI: https://index.docker.io/v1/
OS: Pop!_OS 22.04 LTS
OS type: linux
OS version: 22.04
OS arch: x86_64
OS kernel: 6.4.6-76060406-generic
OS CPU: 8
OS memory: 15794 MB
Security options:
name=apparmor
name=seccomp,profile=builtin
name=cgroupns
Command used with act
act -e my_act_event.json
Describe issue
I want to mimic a pull_request from a branch with randomname into the master branch.
Given the workflow, the job/workflow should not be triggered, because it requires the branch to be named feature/*.
Expected
I expect act pull_request -e my_act_event.json or just act -e my_act_event.json not to trigger the workflow and skip.
Observed
act -e my_act_event.json triggers act to run the workflow
Bug report info
Command used with act
Describe issue
I want to mimic a pull_request from a branch with
randomname
into themaster
branch. Given the workflow, the job/workflow should not be triggered, because it requires the branch to be namedfeature/*
.Expected
I expect
act pull_request -e my_act_event.json
or justact -e my_act_event.json
not to trigger the workflow and skip.Observed
act -e my_act_event.json
triggers act to run the workflowReproducible Example
git clone git@github.com:cplee/github-actions-demo.git
Change the workflow
main.yml
to the one decribed below.And add a event payload as json in root:
_my_actevent.json
Link to GitHub repository
https://github.com/cplee/github-actions-demo
Workflow content
Relevant log output
Additional information
Seems like the whole event payload is not respeced by act, despite it being read