github.com/nektos/act@v0.2.63/pkg/runner/testdata/if-env-act/push.yml (about) 1 name: if-env-act-test 2 on: push 3 4 jobs: 5 if_env_test: 6 name: Test if env.ACT matching 7 runs-on: ubuntu-latest 8 steps: 9 # Should RUN, since we are running in act 10 - name: Positive env.ACT match 11 if: ${{ env.ACT }} 12 shell: bash 13 run: | 14 echo "This workflow is run using act, continue!" 15 echo "ACT: $ACT" 16 exit 0 17 18 # Should SKIP, since we are running in act 19 - name: Negative env.ACT match 20 if: ${{ !env.ACT }} 21 shell: bash 22 run: | 23 echo "This should be skipped since this workflow is run using act, fail!" 24 echo "ACT: $ACT" 25 exit 1