Repository: nektos/act (language: go)

Issue:
env.act not working with github actions
### Bug report info

```plain text
(env)  ~/D/G/azure-queue-sidecar  master  act --bug-report
act version:            v0.2.27-dev
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 4
Docker host:            unix:///run/user/1000/docker.sock
Sockets found:
	/run/user/1000/docker.sock
Config files:
	/home/om/.actrc:
		-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest
		-P ubuntu-20.04=ghcr.io/catthehacker/ubuntu:act-20.04
		-P ubuntu-18.04=ghcr.io/catthehacker/ubuntu:act-18.04
		--defaultbranch master
Build info:
	Go version:            go1.18.1
	Module path:           github.com/nektos/act
	Main version:          (devel)
	Main path:             github.com/nektos/act
	Main checksum:
	Build settings:
		-compiler:            gc
		CGO_ENABLED:          1
		CGO_CFLAGS:
		CGO_CPPFLAGS:
		CGO_CXXFLAGS:
		CGO_LDFLAGS:
		GOARCH:               amd64
		GOOS:                 linux
		GOAMD64:              v1
		vcs:                  git
		vcs.revision:         87327286d51e8f776e27baadb1eafc3b5382c7f1
		vcs.time:             2022-11-25T10:38:49Z
		vcs.modified:         true
Docker Engine:
	Engine version:        20.10.18
	Engine runtime:        runc
	Cgroup version:        2
	Cgroup driver:         systemd
	Storage driver:        overlay2
	Registry URI:          https://index.docker.io/v1/
	OS:                    Ubuntu 22.04.1 LTS
	OS type:               linux
	OS version:            22.04
	OS arch:               x86_64
	OS kernel:             5.19.0-76051900-generic
	OS CPU:                4
	OS memory:             11246 MB
	Security options:
		name=seccomp,profile=default
		name=rootless
		name=cgroupns
```


### Command used with act

```sh
not an issue with act but with compability with github actions.
```


### Describe issue

![image](https://user-images.githubusercontent.com/6200749/204163215-4360d665-1d9d-4698-8222-f650a9ed0d80.png)


### Link to GitHub repository

_No response_

### Workflow content

```yml
name: foo
on: push
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - run: echo building
 deploy:
   runs-on: ubuntu-latest
   if: ${{ !env.ACT }}
   steps:
     - run: echo this only runs in github
```


### Relevant log output

```sh
asdf
```


### Additional information

_No response_


Discussion / hints:
Maybe I misunderstood Github / Act documentation. it seems "if" behaves differently on steps & jobs? can I disable a whole job like this only in Act, but not in Github? It would be nice to just not run the deploy job in Act but run it as usual in Github.
I'm about to propose to delete this section from the readme: https://github.com/nektos/act#skipping-steps and replace it with https://github.com/nektos/act/issues/720#issuecomment-874759066.
_It's not the first time someone misunderstood it_

Fix patch:
diff --git a/README.md b/README.md
index 92da72a5933..7f9d962b29d 100644
--- a/README.md
+++ b/README.md
@@ -342,10 +342,41 @@ MY_ENV_VAR=MY_ENV_VAR_VALUE
 MY_2ND_ENV_VAR="my 2nd env var value"
 ```
 
+# Skipping jobs
+
+You cannot use the `env` context in job level if conditions, but you can add a custom event property to the `github` context. You can use this method also on step level if conditions.
+
+```yml
+on: push
+jobs:
+  deploy:
+    if: ${{ !github.event.act }} # skip during local actions testing
+    runs-on: ubuntu-latest
+    steps:
+    - run: exit 0
+```
+
+And use this `event.json` file with act otherwise the Job will run:
+
+```json
+{
+    "act": true
+}
+```
+
+Run act like
+
+```sh
+act -e event.json
+```
+
+_Hint: you can add / append `-e event.json` as a line into `./.actrc`_
+
 # Skipping steps
 
 Act adds a special environment variable `ACT` that can be used to skip a step that you
 don't want to run locally. E.g. a step that posts a Slack message or bumps a version number.
+**You cannot use this method in job level if conditions, see [Skipping jobs](#skipping-jobs)**
 
 ```yml
 - name: Some step


Test patch: