[GH-ISSUE #353] Results for expression evaluation in if conditional are differ from the actual #248

Closed
opened 2026-03-01 21:41:46 +03:00 by kerem · 3 comments
Owner

Originally created by @sarisia on GitHub (Sep 1, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/353

Arch Linux
$ uname -a
Linux pekora 5.8.1-arch1-1 #1 SMP PREEMPT Wed, 12 Aug 2020 18:50:43 +0000 x86_64 GNU/Linux
$ act --version
act version 0.2.13

Summary

It seems that GitHub Actions handle any string in if conditional as true, but Act does not.

Consider the following workflow:

name: conditional test
on:
  push:
  workflow_dispatch:

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: 'true'
        id: 'out-true'
        run: echo "::set-output name=out::true"
      - name: validate true
        if: ${{ steps.out-true.outputs.out }}
        run: echo "validate true"

      - name: 'false'
        id: 'out-false'
        run: echo "::set-output name=out::false"
      - name: validate false
        if: ${{ steps.out-false.outputs.out }}
        run: echo "validate false"

      - name: '0'
        id: 'out-zero'
        run: echo "::set-output name=out::0"
      - name: validate zero
        if: ${{ steps.out-zero.outputs.out }}
        run: echo "validate zero"

      - name: '1'
        id: 'out-one'
        run: echo "::set-output name=out::1"
      - name: validate one
        if: ${{ steps.out-one.outputs.out }}
        run: echo "validate one"

GitHub Actions result

Untitled

Full logs taken with `ACTIONS_STEP_DEBUG` flag
2020-09-01T12:33:23.6409468Z ##[section]Starting: Request a runner to run this job
2020-09-01T12:33:24.2717912Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'ubuntu-latest'
2020-09-01T12:33:24.2718181Z Can't find any online and idle self-hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2020-09-01T12:33:24.2718544Z Found online and idle hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2020-09-01T12:33:24.5069763Z ##[section]Finishing: Request a runner to run this job
2020-09-01T12:33:32.0195564Z ##[debug]Starting: test
2020-09-01T12:33:32.0207406Z ##[debug]Cleaning runner temp folder: /home/runner/work/_temp
2020-09-01T12:33:32.0240978Z ##[debug]Starting: Set up job
2020-09-01T12:33:32.0241259Z Current runner version: '2.273.0'
2020-09-01T12:33:32.0274573Z ##[group]Operating System
2020-09-01T12:33:32.0275210Z Ubuntu
2020-09-01T12:33:32.0275448Z 18.04.5
2020-09-01T12:33:32.0275621Z LTS
2020-09-01T12:33:32.0275846Z ##[endgroup]
2020-09-01T12:33:32.0276085Z ##[group]Virtual Environment
2020-09-01T12:33:32.0276347Z Environment: ubuntu-18.04
2020-09-01T12:33:32.0276581Z Version: 20200825.1
2020-09-01T12:33:32.0276960Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu18/20200825.1/images/linux/Ubuntu1804-README.md
2020-09-01T12:33:32.0277245Z ##[endgroup]
2020-09-01T12:33:32.0278300Z ##[debug]Primary repository: kirchen-bell/actions-conditional-test
2020-09-01T12:33:32.0278751Z Prepare workflow directory
2020-09-01T12:33:32.0336517Z ##[debug]Creating pipeline directory: '/home/runner/work/actions-conditional-test'
2020-09-01T12:33:32.0338774Z ##[debug]Creating workspace directory: '/home/runner/work/actions-conditional-test/actions-conditional-test'
2020-09-01T12:33:32.0339593Z ##[debug]Update context data
2020-09-01T12:33:32.0340781Z ##[debug]Evaluating job-level environment variables
2020-09-01T12:33:32.0459362Z ##[debug]Evaluating job container
2020-09-01T12:33:32.0459932Z ##[debug]Evaluating job service containers
2020-09-01T12:33:32.0460430Z ##[debug]Evaluating job defaults
2020-09-01T12:33:32.0473277Z Prepare all required actions
2020-09-01T12:33:32.0504481Z ##[debug]Set step 'run1' display name to: 'true'
2020-09-01T12:33:32.0507226Z ##[debug]Set step 'run2' display name to: 'validate true'
2020-09-01T12:33:32.0508295Z ##[debug]Set step 'run3' display name to: 'false'
2020-09-01T12:33:32.0509245Z ##[debug]Set step 'run4' display name to: 'validate false'
2020-09-01T12:33:32.0510212Z ##[debug]Set step 'run5' display name to: '0'
2020-09-01T12:33:32.0511172Z ##[debug]Set step 'run6' display name to: 'validate zero'
2020-09-01T12:33:32.0512070Z ##[debug]Set step 'run7' display name to: '1'
2020-09-01T12:33:32.0512981Z ##[debug]Set step 'run8' display name to: 'validate one'
2020-09-01T12:33:32.0527328Z ##[debug]Collect running processes for tracking orphan processes.
2020-09-01T12:33:32.0742146Z ##[debug]Finishing: Set up job
2020-09-01T12:33:32.0764880Z ##[debug]Evaluating condition for step: 'true'
2020-09-01T12:33:32.0799493Z ##[debug]Evaluating: success()
2020-09-01T12:33:32.0801519Z ##[debug]Evaluating success:
2020-09-01T12:33:32.0812633Z ##[debug]=> true
2020-09-01T12:33:32.0814365Z ##[debug]Result: true
2020-09-01T12:33:32.0821311Z ##[debug]Starting: true
2020-09-01T12:33:32.0846623Z ##[debug]Loading inputs
2020-09-01T12:33:32.0848586Z ##[debug]Loading env
2020-09-01T12:33:32.0886418Z ##[group]Run echo "::set-output name=out::true"
2020-09-01T12:33:32.0886656Z [36;1mecho "::set-output name=out::true"[0m
2020-09-01T12:33:32.1672063Z shell: /bin/bash -e {0}
2020-09-01T12:33:32.1672485Z ##[endgroup]
2020-09-01T12:33:32.1742052Z ##[debug]/bin/bash -e /home/runner/work/_temp/de288525-e69f-429e-8bb1-bf9a77a7bd6e.sh
2020-09-01T12:33:33.0189245Z ::set-output name=out::true
2020-09-01T12:33:33.0214228Z ##[debug]steps.out-true.outputs.out='true'
2020-09-01T12:33:33.0275244Z ##[debug]Finishing: true
2020-09-01T12:33:33.0284589Z ##[debug]Evaluating condition for step: 'validate true'
2020-09-01T12:33:33.0292717Z ##[debug]Evaluating: (success() && steps.out-true.outputs.out)
2020-09-01T12:33:33.0293329Z ##[debug]Evaluating And:
2020-09-01T12:33:33.0293727Z ##[debug]..Evaluating success:
2020-09-01T12:33:33.0294448Z ##[debug]..=> true
2020-09-01T12:33:33.0295044Z ##[debug]..Evaluating Index:
2020-09-01T12:33:33.0295685Z ##[debug]....Evaluating Index:
2020-09-01T12:33:33.0296016Z ##[debug]......Evaluating Index:
2020-09-01T12:33:33.0296436Z ##[debug]........Evaluating steps:
2020-09-01T12:33:33.0296937Z ##[debug]........=> Object
2020-09-01T12:33:33.0298458Z ##[debug]........Evaluating String:
2020-09-01T12:33:33.0299074Z ##[debug]........=> 'out-true'
2020-09-01T12:33:33.0301790Z ##[debug]......=> Object
2020-09-01T12:33:33.0302239Z ##[debug]......Evaluating String:
2020-09-01T12:33:33.0302634Z ##[debug]......=> 'outputs'
2020-09-01T12:33:33.0303193Z ##[debug]....=> Object
2020-09-01T12:33:33.0303626Z ##[debug]....Evaluating String:
2020-09-01T12:33:33.0303950Z ##[debug]....=> 'out'
2020-09-01T12:33:33.0304358Z ##[debug]..=> 'true'
2020-09-01T12:33:33.0304783Z ##[debug]=> 'true'
2020-09-01T12:33:33.0305806Z ##[debug]Expanded: (true && 'true')
2020-09-01T12:33:33.0306238Z ##[debug]Result: 'true'
2020-09-01T12:33:33.0307613Z ##[debug]Starting: validate true
2020-09-01T12:33:33.0497677Z ##[debug]Loading inputs
2020-09-01T12:33:33.0498699Z ##[debug]Loading env
2020-09-01T12:33:33.0504135Z ##[group]Run echo "validate true"
2020-09-01T12:33:33.0504353Z [36;1mecho "validate true"[0m
2020-09-01T12:33:33.0564099Z shell: /bin/bash -e {0}
2020-09-01T12:33:33.0564339Z ##[endgroup]
2020-09-01T12:33:33.0613097Z ##[debug]/bin/bash -e /home/runner/work/_temp/09c1d974-791c-477a-bb99-2b8da3f72864.sh
2020-09-01T12:33:33.0641587Z validate true
2020-09-01T12:33:33.0645382Z ##[debug]Finishing: validate true
2020-09-01T12:33:33.0648212Z ##[debug]Evaluating condition for step: 'false'
2020-09-01T12:33:33.0651383Z ##[debug]Evaluating: success()
2020-09-01T12:33:33.0651753Z ##[debug]Evaluating success:
2020-09-01T12:33:33.0652270Z ##[debug]=> true
2020-09-01T12:33:33.0652725Z ##[debug]Result: true
2020-09-01T12:33:33.0653452Z ##[debug]Starting: false
2020-09-01T12:33:33.0659706Z ##[debug]Loading inputs
2020-09-01T12:33:33.0660490Z ##[debug]Loading env
2020-09-01T12:33:33.0664163Z ##[group]Run echo "::set-output name=out::false"
2020-09-01T12:33:33.0664381Z [36;1mecho "::set-output name=out::false"[0m
2020-09-01T12:33:33.0706506Z shell: /bin/bash -e {0}
2020-09-01T12:33:33.0706715Z ##[endgroup]
2020-09-01T12:33:33.0748347Z ##[debug]/bin/bash -e /home/runner/work/_temp/bf9cb4db-c8ee-4731-926a-3e0ee114bd6e.sh
2020-09-01T12:33:33.0873429Z ::set-output name=out::false
2020-09-01T12:33:33.0873970Z ##[debug]steps.out-false.outputs.out='false'
2020-09-01T12:33:33.0875458Z ##[debug]Finishing: false
2020-09-01T12:33:33.0878076Z ##[debug]Evaluating condition for step: 'validate false'
2020-09-01T12:33:33.0880101Z ##[debug]Evaluating: (success() && steps.out-false.outputs.out)
2020-09-01T12:33:33.0880488Z ##[debug]Evaluating And:
2020-09-01T12:33:33.0880768Z ##[debug]..Evaluating success:
2020-09-01T12:33:33.0881115Z ##[debug]..=> true
2020-09-01T12:33:33.0881445Z ##[debug]..Evaluating Index:
2020-09-01T12:33:33.0881723Z ##[debug]....Evaluating Index:
2020-09-01T12:33:33.0881997Z ##[debug]......Evaluating Index:
2020-09-01T12:33:33.0882287Z ##[debug]........Evaluating steps:
2020-09-01T12:33:33.0882580Z ##[debug]........=> Object
2020-09-01T12:33:33.0882878Z ##[debug]........Evaluating String:
2020-09-01T12:33:33.0883184Z ##[debug]........=> 'out-false'
2020-09-01T12:33:33.0883497Z ##[debug]......=> Object
2020-09-01T12:33:33.0883799Z ##[debug]......Evaluating String:
2020-09-01T12:33:33.0884092Z ##[debug]......=> 'outputs'
2020-09-01T12:33:33.0884411Z ##[debug]....=> Object
2020-09-01T12:33:33.0884897Z ##[debug]....Evaluating String:
2020-09-01T12:33:33.0885178Z ##[debug]....=> 'out'
2020-09-01T12:33:33.0885732Z ##[debug]..=> 'false'
2020-09-01T12:33:33.0886018Z ##[debug]=> 'false'
2020-09-01T12:33:33.0886491Z ##[debug]Expanded: (true && 'false')
2020-09-01T12:33:33.0886865Z ##[debug]Result: 'false'
2020-09-01T12:33:33.0887502Z ##[debug]Starting: validate false
2020-09-01T12:33:33.0892893Z ##[debug]Loading inputs
2020-09-01T12:33:33.0893661Z ##[debug]Loading env
2020-09-01T12:33:33.0897722Z ##[group]Run echo "validate false"
2020-09-01T12:33:33.0897938Z [36;1mecho "validate false"[0m
2020-09-01T12:33:33.0937876Z shell: /bin/bash -e {0}
2020-09-01T12:33:33.0938078Z ##[endgroup]
2020-09-01T12:33:33.0980449Z ##[debug]/bin/bash -e /home/runner/work/_temp/430455a3-dc68-4cbf-a77e-4796ba5e2915.sh
2020-09-01T12:33:33.1008387Z validate false
2020-09-01T12:33:33.1009975Z ##[debug]Finishing: validate false
2020-09-01T12:33:33.1012514Z ##[debug]Evaluating condition for step: '0'
2020-09-01T12:33:33.1013872Z ##[debug]Evaluating: success()
2020-09-01T12:33:33.1014162Z ##[debug]Evaluating success:
2020-09-01T12:33:33.1014530Z ##[debug]=> true
2020-09-01T12:33:33.1014913Z ##[debug]Result: true
2020-09-01T12:33:33.1015461Z ##[debug]Starting: 0
2020-09-01T12:33:33.1020486Z ##[debug]Loading inputs
2020-09-01T12:33:33.1021224Z ##[debug]Loading env
2020-09-01T12:33:33.1025092Z ##[group]Run echo "::set-output name=out::0"
2020-09-01T12:33:33.1025311Z [36;1mecho "::set-output name=out::0"[0m
2020-09-01T12:33:33.1064661Z shell: /bin/bash -e {0}
2020-09-01T12:33:33.1064870Z ##[endgroup]
2020-09-01T12:33:33.1106364Z ##[debug]/bin/bash -e /home/runner/work/_temp/3833927e-cc63-4167-915b-f6aa9c5ca613.sh
2020-09-01T12:33:33.1136027Z ::set-output name=out::0
2020-09-01T12:33:33.1136401Z ##[debug]steps.out-zero.outputs.out='0'
2020-09-01T12:33:33.1137909Z ##[debug]Finishing: 0
2020-09-01T12:33:33.1140506Z ##[debug]Evaluating condition for step: 'validate zero'
2020-09-01T12:33:33.1142307Z ##[debug]Evaluating: (success() && steps.out-zero.outputs.out)
2020-09-01T12:33:33.1142636Z ##[debug]Evaluating And:
2020-09-01T12:33:33.1142917Z ##[debug]..Evaluating success:
2020-09-01T12:33:33.1143267Z ##[debug]..=> true
2020-09-01T12:33:33.1143584Z ##[debug]..Evaluating Index:
2020-09-01T12:33:33.1143865Z ##[debug]....Evaluating Index:
2020-09-01T12:33:33.1144144Z ##[debug]......Evaluating Index:
2020-09-01T12:33:33.1144443Z ##[debug]........Evaluating steps:
2020-09-01T12:33:33.1144745Z ##[debug]........=> Object
2020-09-01T12:33:33.1145050Z ##[debug]........Evaluating String:
2020-09-01T12:33:33.1145358Z ##[debug]........=> 'out-zero'
2020-09-01T12:33:33.1145669Z ##[debug]......=> Object
2020-09-01T12:33:33.1145957Z ##[debug]......Evaluating String:
2020-09-01T12:33:33.1146241Z ##[debug]......=> 'outputs'
2020-09-01T12:33:33.1146535Z ##[debug]....=> Object
2020-09-01T12:33:33.1146866Z ##[debug]....Evaluating String:
2020-09-01T12:33:33.1147147Z ##[debug]....=> 'out'
2020-09-01T12:33:33.1147435Z ##[debug]..=> '0'
2020-09-01T12:33:33.1147733Z ##[debug]=> '0'
2020-09-01T12:33:33.1148154Z ##[debug]Expanded: (true && '0')
2020-09-01T12:33:33.1148506Z ##[debug]Result: '0'
2020-09-01T12:33:33.1149068Z ##[debug]Starting: validate zero
2020-09-01T12:33:33.1154584Z ##[debug]Loading inputs
2020-09-01T12:33:33.1155363Z ##[debug]Loading env
2020-09-01T12:33:33.1158832Z ##[group]Run echo "validate zero"
2020-09-01T12:33:33.1159036Z [36;1mecho "validate zero"[0m
2020-09-01T12:33:33.1199274Z shell: /bin/bash -e {0}
2020-09-01T12:33:33.1199483Z ##[endgroup]
2020-09-01T12:33:33.1239984Z ##[debug]/bin/bash -e /home/runner/work/_temp/8ec0226a-3876-4be9-9a36-e07fbd51507c.sh
2020-09-01T12:33:33.9960699Z validate zero
2020-09-01T12:33:33.9990761Z ##[debug]Finishing: validate zero
2020-09-01T12:33:34.0032789Z ##[debug]Evaluating condition for step: '1'
2020-09-01T12:33:34.0066168Z ##[debug]Evaluating: success()
2020-09-01T12:33:34.0070866Z ##[debug]Evaluating success:
2020-09-01T12:33:34.0076066Z ##[debug]=> true
2020-09-01T12:33:34.0081900Z ##[debug]Result: true
2020-09-01T12:33:34.0090128Z ##[debug]Starting: 1
2020-09-01T12:33:34.0108091Z ##[debug]Loading inputs
2020-09-01T12:33:34.0111262Z ##[debug]Loading env
2020-09-01T12:33:34.0116403Z ##[group]Run echo "::set-output name=out::1"
2020-09-01T12:33:34.0116672Z [36;1mecho "::set-output name=out::1"[0m
2020-09-01T12:33:34.0159846Z shell: /bin/bash -e {0}
2020-09-01T12:33:34.0160050Z ##[endgroup]
2020-09-01T12:33:34.0206531Z ##[debug]/bin/bash -e /home/runner/work/_temp/3f30adb2-7dcd-4209-ac98-7e310d03b96c.sh
2020-09-01T12:33:34.0241559Z ::set-output name=out::1
2020-09-01T12:33:34.0242146Z ##[debug]steps.out-one.outputs.out='1'
2020-09-01T12:33:34.0243956Z ##[debug]Finishing: 1
2020-09-01T12:33:34.0247101Z ##[debug]Evaluating condition for step: 'validate one'
2020-09-01T12:33:34.0250095Z ##[debug]Evaluating: (success() && steps.out-one.outputs.out)
2020-09-01T12:33:34.0250625Z ##[debug]Evaluating And:
2020-09-01T12:33:34.0250932Z ##[debug]..Evaluating success:
2020-09-01T12:33:34.0251654Z ##[debug]..=> true
2020-09-01T12:33:34.0252043Z ##[debug]..Evaluating Index:
2020-09-01T12:33:34.0252343Z ##[debug]....Evaluating Index:
2020-09-01T12:33:34.0252622Z ##[debug]......Evaluating Index:
2020-09-01T12:33:34.0252912Z ##[debug]........Evaluating steps:
2020-09-01T12:33:34.0253234Z ##[debug]........=> Object
2020-09-01T12:33:34.0253588Z ##[debug]........Evaluating String:
2020-09-01T12:33:34.0253924Z ##[debug]........=> 'out-one'
2020-09-01T12:33:34.0254394Z ##[debug]......=> Object
2020-09-01T12:33:34.0254702Z ##[debug]......Evaluating String:
2020-09-01T12:33:34.0254997Z ##[debug]......=> 'outputs'
2020-09-01T12:33:34.0255283Z ##[debug]....=> Object
2020-09-01T12:33:34.0255599Z ##[debug]....Evaluating String:
2020-09-01T12:33:34.0255875Z ##[debug]....=> 'out'
2020-09-01T12:33:34.0256183Z ##[debug]..=> '1'
2020-09-01T12:33:34.0256479Z ##[debug]=> '1'
2020-09-01T12:33:34.0257002Z ##[debug]Expanded: (true && '1')
2020-09-01T12:33:34.0257353Z ##[debug]Result: '1'
2020-09-01T12:33:34.0258303Z ##[debug]Starting: validate one
2020-09-01T12:33:34.0263683Z ##[debug]Loading inputs
2020-09-01T12:33:34.0264372Z ##[debug]Loading env
2020-09-01T12:33:34.0267845Z ##[group]Run echo "validate one"
2020-09-01T12:33:34.0268051Z [36;1mecho "validate one"[0m
2020-09-01T12:33:34.0306877Z shell: /bin/bash -e {0}
2020-09-01T12:33:34.0307081Z ##[endgroup]
2020-09-01T12:33:34.0347852Z ##[debug]/bin/bash -e /home/runner/work/_temp/6024fd93-80ba-4d84-8e17-8aaae98aac53.sh
2020-09-01T12:33:34.0574956Z validate one
2020-09-01T12:33:34.0578380Z ##[debug]Finishing: validate one
2020-09-01T12:33:34.0584700Z ##[debug]Starting: Complete job
2020-09-01T12:33:34.0585341Z Cleaning up orphan processes
2020-09-01T12:33:34.0760007Z ##[debug]Finishing: Complete job
2020-09-01T12:33:34.0766754Z ##[debug]Finishing: test

Act result

$ sudo act push
[conditional test/test] 🚀  Start image=node:12.6-buster-slim
[conditional test/test]   🐳  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[conditional test/test] ⭐  Run true
[conditional test/test]   ⚙  ::set-output:: out=true
[conditional test/test]   ✅  Success - true
[conditional test/test] ⭐  Run validate true
| validate true
[conditional test/test]   ✅  Success - validate true
[conditional test/test] ⭐  Run false
[conditional test/test]   ⚙  ::set-output:: out=false
[conditional test/test]   ✅  Success - false
[conditional test/test] ⭐  Run 0
[conditional test/test]   ⚙  ::set-output:: out=0
[conditional test/test]   ✅  Success - 0
[conditional test/test] ⭐  Run 1
[conditional test/test]   ⚙  ::set-output:: out=1
[conditional test/test]   ✅  Success - 1
[conditional test/test] ⭐  Run validate one
| validate one
[conditional test/test]   ✅  Success - validate one
Full logs taken with `--verbose` flag
> sudo act --verbose push
[sudo] password for sarisia: 
DEBU[0000] Loading environment from /home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.env 
DEBU[0000] Loading secrets from                         
DEBU[0000] Loading workflows from '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.github/workflows' 
DEBU[0000] Reading workflow '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.github/workflows/test.yml' 
DEBU[0000] Planning event: push                         
DEBU[0000] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0000] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0000] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0000] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0000] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' 
DEBU[0000] HEAD matches refs/heads/master               
DEBU[0000] using github ref: refs/heads/master          
DEBU[0000] context env => map[]                         
[conditional test/test] 🚀  Start image=node:12.6-buster-slim
DEBU[0000] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0000] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0000] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0000] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0000] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' 
DEBU[0000] HEAD matches refs/heads/master               
DEBU[0000] using github ref: refs/heads/master          
[conditional test/test]   🐳  docker pull node:12.6-buster-slim
DEBU[0000] Image exists? true                           
[conditional test/test]   🐳  docker create image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[conditional test/test] Created container name=act-conditional-test-test id=074972da493ab2421a7ce6887968066a13d96b5a13267a319b54cc29b8e43c3d from image node:12.6-buster-slim
[conditional test/test] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp]
[conditional test/test]   🐳  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[conditional test/test] Starting container: 074972da493ab2421a7ce6887968066a13d96b5a13267a319b54cc29b8e43c3d
[conditional test/test] Started container: 074972da493ab2421a7ce6887968066a13d96b5a13267a319b54cc29b8e43c3d
DEBU[0001] Writing entry to tarball workflow/event.json len:2 
DEBU[0001] Writing entry to tarball home/.act len:0     
[conditional test/test] Extracting content to '/github/'
DEBU[0001] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0001] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0001] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' 
DEBU[0001] HEAD matches refs/heads/master               
DEBU[0001] using github ref: refs/heads/master          
DEBU[0001] setupEnv => map[GITHUB_ACTION:out-true GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] 
DEBU[0001] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0001] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0001] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' 
DEBU[0001] HEAD matches refs/heads/master               
DEBU[0001] using github ref: refs/heads/master          
DEBU[0001] context env => map[]                         
DEBU[0001] context env => map[GITHUB_ACTION:out-true GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] 
[conditional test/test] ⭐  Run true
DEBU[0001] Wrote command 'echo "::set-output name=out::true"' to 'workflow/out-true' 
DEBU[0001] Writing entry to tarball workflow/out-true len:50 
[conditional test/test] Extracting content to '/github/'
[conditional test/test] Exec command '[bash --noprofile --norc -eo pipefail /github/workflow/out-true]'
[conditional test/test]   ⚙  ::set-output:: out=true
[conditional test/test]   ✅  Success - true
DEBU[0001] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0001] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0001] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' 
DEBU[0001] HEAD matches refs/heads/master               
DEBU[0001] using github ref: refs/heads/master          
DEBU[0001] setupEnv => map[GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] 
DEBU[0001] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0001] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0001] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' 
DEBU[0001] HEAD matches refs/heads/master               
DEBU[0001] using github ref: refs/heads/master          
DEBU[0001] context env => map[]                         
DEBU[0001] context env => map[GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] 
DEBU[0001] Evaluating 'steps['out-true']['outputs']['out']' instead of 'steps.out-true.outputs.out' 
DEBU[0001] expression 'Boolean(true)' evaluated to 'true' 
[conditional test/test] ⭐  Run validate true
DEBU[0001] Wrote command 'echo "validate true"' to 'workflow/1' 
DEBU[0001] Writing entry to tarball workflow/1 len:36   
[conditional test/test] Extracting content to '/github/'
[conditional test/test] Exec command '[bash --noprofile --norc -eo pipefail /github/workflow/1]'
| validate true
[conditional test/test]   ✅  Success - validate true
DEBU[0001] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0001] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0001] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' 
DEBU[0001] HEAD matches refs/heads/master               
DEBU[0001] using github ref: refs/heads/master          
DEBU[0001] setupEnv => map[GITHUB_ACTION:out-false GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] 
DEBU[0001] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0001] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0001] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' 
DEBU[0001] HEAD matches refs/heads/master               
DEBU[0001] using github ref: refs/heads/master          
DEBU[0001] context env => map[]                         
DEBU[0001] context env => map[GITHUB_ACTION:out-false GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] 
[conditional test/test] ⭐  Run false
DEBU[0001] Wrote command 'echo "::set-output name=out::false"' to 'workflow/out-false' 
DEBU[0001] Writing entry to tarball workflow/out-false len:51 
[conditional test/test] Extracting content to '/github/'
[conditional test/test] Exec command '[bash --noprofile --norc -eo pipefail /github/workflow/out-false]'
[conditional test/test]   ⚙  ::set-output:: out=false
[conditional test/test]   ✅  Success - false
DEBU[0002] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0002] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0002] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' 
DEBU[0002] HEAD matches refs/heads/master               
DEBU[0002] using github ref: refs/heads/master          
DEBU[0002] setupEnv => map[GITHUB_ACTION:3 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] 
DEBU[0002] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0002] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0002] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' 
DEBU[0002] HEAD matches refs/heads/master               
DEBU[0002] using github ref: refs/heads/master          
DEBU[0002] context env => map[]                         
DEBU[0002] context env => map[GITHUB_ACTION:3 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] 
DEBU[0002] Evaluating 'steps['out-false']['outputs']['out']' instead of 'steps.out-false.outputs.out' 
DEBU[0002] expression 'Boolean(false)' evaluated to 'false' 
DEBU[0002] Skipping step 'validate false' due to '${{ steps.out-false.outputs.out }}' 
DEBU[0002] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0002] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0002] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' 
DEBU[0002] HEAD matches refs/heads/master               
DEBU[0002] using github ref: refs/heads/master          
DEBU[0002] setupEnv => map[GITHUB_ACTION:out-zero GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] 
DEBU[0002] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0002] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0002] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' 
DEBU[0002] HEAD matches refs/heads/master               
DEBU[0002] using github ref: refs/heads/master          
DEBU[0002] context env => map[]                         
DEBU[0002] context env => map[GITHUB_ACTION:out-zero GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] 
[conditional test/test] ⭐  Run 0
DEBU[0002] Wrote command 'echo "::set-output name=out::0"' to 'workflow/out-zero' 
DEBU[0002] Writing entry to tarball workflow/out-zero len:47 
[conditional test/test] Extracting content to '/github/'
[conditional test/test] Exec command '[bash --noprofile --norc -eo pipefail /github/workflow/out-zero]'
[conditional test/test]   ⚙  ::set-output:: out=0
[conditional test/test]   ✅  Success - 0
DEBU[0002] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0002] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0002] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' 
DEBU[0002] HEAD matches refs/heads/master               
DEBU[0002] using github ref: refs/heads/master          
DEBU[0002] setupEnv => map[GITHUB_ACTION:5 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] 
DEBU[0002] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0002] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0002] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' 
DEBU[0002] HEAD matches refs/heads/master               
DEBU[0002] using github ref: refs/heads/master          
DEBU[0002] context env => map[]                         
DEBU[0002] context env => map[GITHUB_ACTION:5 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] 
DEBU[0002] Evaluating 'steps['out-zero']['outputs']['out']' instead of 'steps.out-zero.outputs.out' 
DEBU[0002] expression 'Boolean(0)' evaluated to 'false' 
DEBU[0002] Skipping step 'validate zero' due to '${{ steps.out-zero.outputs.out }}' 
DEBU[0002] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0002] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0002] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' 
DEBU[0002] HEAD matches refs/heads/master               
DEBU[0002] using github ref: refs/heads/master          
DEBU[0002] setupEnv => map[GITHUB_ACTION:out-one GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] 
DEBU[0002] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0002] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0002] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' 
DEBU[0002] HEAD matches refs/heads/master               
DEBU[0002] using github ref: refs/heads/master          
DEBU[0002] context env => map[]                         
DEBU[0002] context env => map[GITHUB_ACTION:out-one GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] 
[conditional test/test] ⭐  Run 1
DEBU[0002] Wrote command 'echo "::set-output name=out::1"' to 'workflow/out-one' 
DEBU[0002] Writing entry to tarball workflow/out-one len:47 
[conditional test/test] Extracting content to '/github/'
[conditional test/test] Exec command '[bash --noprofile --norc -eo pipefail /github/workflow/out-one]'
[conditional test/test]   ⚙  ::set-output:: out=1
[conditional test/test]   ✅  Success - 1
DEBU[0002] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0002] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0002] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' 
DEBU[0002] HEAD matches refs/heads/master               
DEBU[0002] using github ref: refs/heads/master          
DEBU[0002] setupEnv => map[GITHUB_ACTION:7 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] 
DEBU[0002] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0002] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' 
DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 
DEBU[0002] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' 
DEBU[0002] HEAD matches refs/heads/master               
DEBU[0002] using github ref: refs/heads/master          
DEBU[0002] context env => map[]                         
DEBU[0002] context env => map[GITHUB_ACTION:7 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] 
DEBU[0002] Evaluating 'steps['out-one']['outputs']['out']' instead of 'steps.out-one.outputs.out' 
DEBU[0002] expression 'Boolean(1)' evaluated to 'true'  
[conditional test/test] ⭐  Run validate one
DEBU[0002] Wrote command 'echo "validate one"' to 'workflow/7' 
DEBU[0002] Writing entry to tarball workflow/7 len:35   
[conditional test/test] Extracting content to '/github/'
[conditional test/test] Exec command '[bash --noprofile --norc -eo pipefail /github/workflow/7]'
| validate one
[conditional test/test]   ✅  Success - validate one
[conditional test/test] Removed container: 074972da493ab2421a7ce6887968066a13d96b5a13267a319b54cc29b8e43c3d
[conditional test/test]   🐳  docker volume rm act-conditional-test-test

Just FYI...

If I do == comparison in if conditional, Act acts as same as GitHub Actions:

name: conditional test 2
on:
  push:
  workflow_dispatch:

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - name: 'true'
        id: 'out-true'
        run: echo "::set-output name=out::true"
      - name: validate true
        if: ${{ steps.out-true.outputs.out == true }}
        run: echo "validate true"

      - name: 'false'
        id: 'out-false'
        run: echo "::set-output name=out::false"
      - name: validate false
        if: ${{ steps.out-false.outputs.out == true }}
        run: echo "validate false"

      - name: '0'
        id: 'out-zero'
        run: echo "::set-output name=out::0"
      - name: validate zero
        if: ${{ steps.out-zero.outputs.out == true }}
        run: echo "validate zero"

      - name: '1'
        id: 'out-one'
        run: echo "::set-output name=out::1"
      - name: validate one
        if: ${{ steps.out-one.outputs.out == true }}
        run: echo "validate one"

Untitled (1)

> sudo act push
[conditional test 2/test] 🚀  Start image=node:12.6-buster-slim
[conditional test 2/test]   🐳  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[conditional test 2/test] ⭐  Run true
[conditional test 2/test]   ⚙  ::set-output:: out=true
[conditional test 2/test]   ✅  Success - true
[conditional test 2/test] ⭐  Run false
[conditional test 2/test]   ⚙  ::set-output:: out=false
[conditional test 2/test]   ✅  Success - false
[conditional test 2/test] ⭐  Run 0
[conditional test 2/test]   ⚙  ::set-output:: out=0
[conditional test 2/test]   ✅  Success - 0
[conditional test 2/test] ⭐  Run 1
[conditional test 2/test]   ⚙  ::set-output:: out=1
[conditional test 2/test]   ✅  Success - 1
[conditional test 2/test] ⭐  Run validate one
| validate one
[conditional test 2/test]   ✅  Success - validate one
Originally created by @sarisia on GitHub (Sep 1, 2020). Original GitHub issue: https://github.com/nektos/act/issues/353 ``` Arch Linux $ uname -a Linux pekora 5.8.1-arch1-1 #1 SMP PREEMPT Wed, 12 Aug 2020 18:50:43 +0000 x86_64 GNU/Linux $ act --version act version 0.2.13 ``` # Summary It seems that GitHub Actions handle any string in `if` conditional as `true`, but Act does not. Consider the following workflow: ```yaml name: conditional test on: push: workflow_dispatch: jobs: test: runs-on: ubuntu-latest steps: - name: 'true' id: 'out-true' run: echo "::set-output name=out::true" - name: validate true if: ${{ steps.out-true.outputs.out }} run: echo "validate true" - name: 'false' id: 'out-false' run: echo "::set-output name=out::false" - name: validate false if: ${{ steps.out-false.outputs.out }} run: echo "validate false" - name: '0' id: 'out-zero' run: echo "::set-output name=out::0" - name: validate zero if: ${{ steps.out-zero.outputs.out }} run: echo "validate zero" - name: '1' id: 'out-one' run: echo "::set-output name=out::1" - name: validate one if: ${{ steps.out-one.outputs.out }} run: echo "validate one" ``` ## GitHub Actions result ![Untitled](https://user-images.githubusercontent.com/33576079/91890035-c96a7400-ecc9-11ea-8dc8-992c6dc47d34.png) <details> <summary>Full logs taken with `ACTIONS_STEP_DEBUG` flag</summary> ``` 2020-09-01T12:33:23.6409468Z ##[section]Starting: Request a runner to run this job 2020-09-01T12:33:24.2717912Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'ubuntu-latest' 2020-09-01T12:33:24.2718181Z Can't find any online and idle self-hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest' 2020-09-01T12:33:24.2718544Z Found online and idle hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest' 2020-09-01T12:33:24.5069763Z ##[section]Finishing: Request a runner to run this job 2020-09-01T12:33:32.0195564Z ##[debug]Starting: test 2020-09-01T12:33:32.0207406Z ##[debug]Cleaning runner temp folder: /home/runner/work/_temp 2020-09-01T12:33:32.0240978Z ##[debug]Starting: Set up job 2020-09-01T12:33:32.0241259Z Current runner version: '2.273.0' 2020-09-01T12:33:32.0274573Z ##[group]Operating System 2020-09-01T12:33:32.0275210Z Ubuntu 2020-09-01T12:33:32.0275448Z 18.04.5 2020-09-01T12:33:32.0275621Z LTS 2020-09-01T12:33:32.0275846Z ##[endgroup] 2020-09-01T12:33:32.0276085Z ##[group]Virtual Environment 2020-09-01T12:33:32.0276347Z Environment: ubuntu-18.04 2020-09-01T12:33:32.0276581Z Version: 20200825.1 2020-09-01T12:33:32.0276960Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu18/20200825.1/images/linux/Ubuntu1804-README.md 2020-09-01T12:33:32.0277245Z ##[endgroup] 2020-09-01T12:33:32.0278300Z ##[debug]Primary repository: kirchen-bell/actions-conditional-test 2020-09-01T12:33:32.0278751Z Prepare workflow directory 2020-09-01T12:33:32.0336517Z ##[debug]Creating pipeline directory: '/home/runner/work/actions-conditional-test' 2020-09-01T12:33:32.0338774Z ##[debug]Creating workspace directory: '/home/runner/work/actions-conditional-test/actions-conditional-test' 2020-09-01T12:33:32.0339593Z ##[debug]Update context data 2020-09-01T12:33:32.0340781Z ##[debug]Evaluating job-level environment variables 2020-09-01T12:33:32.0459362Z ##[debug]Evaluating job container 2020-09-01T12:33:32.0459932Z ##[debug]Evaluating job service containers 2020-09-01T12:33:32.0460430Z ##[debug]Evaluating job defaults 2020-09-01T12:33:32.0473277Z Prepare all required actions 2020-09-01T12:33:32.0504481Z ##[debug]Set step 'run1' display name to: 'true' 2020-09-01T12:33:32.0507226Z ##[debug]Set step 'run2' display name to: 'validate true' 2020-09-01T12:33:32.0508295Z ##[debug]Set step 'run3' display name to: 'false' 2020-09-01T12:33:32.0509245Z ##[debug]Set step 'run4' display name to: 'validate false' 2020-09-01T12:33:32.0510212Z ##[debug]Set step 'run5' display name to: '0' 2020-09-01T12:33:32.0511172Z ##[debug]Set step 'run6' display name to: 'validate zero' 2020-09-01T12:33:32.0512070Z ##[debug]Set step 'run7' display name to: '1' 2020-09-01T12:33:32.0512981Z ##[debug]Set step 'run8' display name to: 'validate one' 2020-09-01T12:33:32.0527328Z ##[debug]Collect running processes for tracking orphan processes. 2020-09-01T12:33:32.0742146Z ##[debug]Finishing: Set up job 2020-09-01T12:33:32.0764880Z ##[debug]Evaluating condition for step: 'true' 2020-09-01T12:33:32.0799493Z ##[debug]Evaluating: success() 2020-09-01T12:33:32.0801519Z ##[debug]Evaluating success: 2020-09-01T12:33:32.0812633Z ##[debug]=> true 2020-09-01T12:33:32.0814365Z ##[debug]Result: true 2020-09-01T12:33:32.0821311Z ##[debug]Starting: true 2020-09-01T12:33:32.0846623Z ##[debug]Loading inputs 2020-09-01T12:33:32.0848586Z ##[debug]Loading env 2020-09-01T12:33:32.0886418Z ##[group]Run echo "::set-output name=out::true" 2020-09-01T12:33:32.0886656Z [36;1mecho "::set-output name=out::true"[0m 2020-09-01T12:33:32.1672063Z shell: /bin/bash -e {0} 2020-09-01T12:33:32.1672485Z ##[endgroup] 2020-09-01T12:33:32.1742052Z ##[debug]/bin/bash -e /home/runner/work/_temp/de288525-e69f-429e-8bb1-bf9a77a7bd6e.sh 2020-09-01T12:33:33.0189245Z ::set-output name=out::true 2020-09-01T12:33:33.0214228Z ##[debug]steps.out-true.outputs.out='true' 2020-09-01T12:33:33.0275244Z ##[debug]Finishing: true 2020-09-01T12:33:33.0284589Z ##[debug]Evaluating condition for step: 'validate true' 2020-09-01T12:33:33.0292717Z ##[debug]Evaluating: (success() && steps.out-true.outputs.out) 2020-09-01T12:33:33.0293329Z ##[debug]Evaluating And: 2020-09-01T12:33:33.0293727Z ##[debug]..Evaluating success: 2020-09-01T12:33:33.0294448Z ##[debug]..=> true 2020-09-01T12:33:33.0295044Z ##[debug]..Evaluating Index: 2020-09-01T12:33:33.0295685Z ##[debug]....Evaluating Index: 2020-09-01T12:33:33.0296016Z ##[debug]......Evaluating Index: 2020-09-01T12:33:33.0296436Z ##[debug]........Evaluating steps: 2020-09-01T12:33:33.0296937Z ##[debug]........=> Object 2020-09-01T12:33:33.0298458Z ##[debug]........Evaluating String: 2020-09-01T12:33:33.0299074Z ##[debug]........=> 'out-true' 2020-09-01T12:33:33.0301790Z ##[debug]......=> Object 2020-09-01T12:33:33.0302239Z ##[debug]......Evaluating String: 2020-09-01T12:33:33.0302634Z ##[debug]......=> 'outputs' 2020-09-01T12:33:33.0303193Z ##[debug]....=> Object 2020-09-01T12:33:33.0303626Z ##[debug]....Evaluating String: 2020-09-01T12:33:33.0303950Z ##[debug]....=> 'out' 2020-09-01T12:33:33.0304358Z ##[debug]..=> 'true' 2020-09-01T12:33:33.0304783Z ##[debug]=> 'true' 2020-09-01T12:33:33.0305806Z ##[debug]Expanded: (true && 'true') 2020-09-01T12:33:33.0306238Z ##[debug]Result: 'true' 2020-09-01T12:33:33.0307613Z ##[debug]Starting: validate true 2020-09-01T12:33:33.0497677Z ##[debug]Loading inputs 2020-09-01T12:33:33.0498699Z ##[debug]Loading env 2020-09-01T12:33:33.0504135Z ##[group]Run echo "validate true" 2020-09-01T12:33:33.0504353Z [36;1mecho "validate true"[0m 2020-09-01T12:33:33.0564099Z shell: /bin/bash -e {0} 2020-09-01T12:33:33.0564339Z ##[endgroup] 2020-09-01T12:33:33.0613097Z ##[debug]/bin/bash -e /home/runner/work/_temp/09c1d974-791c-477a-bb99-2b8da3f72864.sh 2020-09-01T12:33:33.0641587Z validate true 2020-09-01T12:33:33.0645382Z ##[debug]Finishing: validate true 2020-09-01T12:33:33.0648212Z ##[debug]Evaluating condition for step: 'false' 2020-09-01T12:33:33.0651383Z ##[debug]Evaluating: success() 2020-09-01T12:33:33.0651753Z ##[debug]Evaluating success: 2020-09-01T12:33:33.0652270Z ##[debug]=> true 2020-09-01T12:33:33.0652725Z ##[debug]Result: true 2020-09-01T12:33:33.0653452Z ##[debug]Starting: false 2020-09-01T12:33:33.0659706Z ##[debug]Loading inputs 2020-09-01T12:33:33.0660490Z ##[debug]Loading env 2020-09-01T12:33:33.0664163Z ##[group]Run echo "::set-output name=out::false" 2020-09-01T12:33:33.0664381Z [36;1mecho "::set-output name=out::false"[0m 2020-09-01T12:33:33.0706506Z shell: /bin/bash -e {0} 2020-09-01T12:33:33.0706715Z ##[endgroup] 2020-09-01T12:33:33.0748347Z ##[debug]/bin/bash -e /home/runner/work/_temp/bf9cb4db-c8ee-4731-926a-3e0ee114bd6e.sh 2020-09-01T12:33:33.0873429Z ::set-output name=out::false 2020-09-01T12:33:33.0873970Z ##[debug]steps.out-false.outputs.out='false' 2020-09-01T12:33:33.0875458Z ##[debug]Finishing: false 2020-09-01T12:33:33.0878076Z ##[debug]Evaluating condition for step: 'validate false' 2020-09-01T12:33:33.0880101Z ##[debug]Evaluating: (success() && steps.out-false.outputs.out) 2020-09-01T12:33:33.0880488Z ##[debug]Evaluating And: 2020-09-01T12:33:33.0880768Z ##[debug]..Evaluating success: 2020-09-01T12:33:33.0881115Z ##[debug]..=> true 2020-09-01T12:33:33.0881445Z ##[debug]..Evaluating Index: 2020-09-01T12:33:33.0881723Z ##[debug]....Evaluating Index: 2020-09-01T12:33:33.0881997Z ##[debug]......Evaluating Index: 2020-09-01T12:33:33.0882287Z ##[debug]........Evaluating steps: 2020-09-01T12:33:33.0882580Z ##[debug]........=> Object 2020-09-01T12:33:33.0882878Z ##[debug]........Evaluating String: 2020-09-01T12:33:33.0883184Z ##[debug]........=> 'out-false' 2020-09-01T12:33:33.0883497Z ##[debug]......=> Object 2020-09-01T12:33:33.0883799Z ##[debug]......Evaluating String: 2020-09-01T12:33:33.0884092Z ##[debug]......=> 'outputs' 2020-09-01T12:33:33.0884411Z ##[debug]....=> Object 2020-09-01T12:33:33.0884897Z ##[debug]....Evaluating String: 2020-09-01T12:33:33.0885178Z ##[debug]....=> 'out' 2020-09-01T12:33:33.0885732Z ##[debug]..=> 'false' 2020-09-01T12:33:33.0886018Z ##[debug]=> 'false' 2020-09-01T12:33:33.0886491Z ##[debug]Expanded: (true && 'false') 2020-09-01T12:33:33.0886865Z ##[debug]Result: 'false' 2020-09-01T12:33:33.0887502Z ##[debug]Starting: validate false 2020-09-01T12:33:33.0892893Z ##[debug]Loading inputs 2020-09-01T12:33:33.0893661Z ##[debug]Loading env 2020-09-01T12:33:33.0897722Z ##[group]Run echo "validate false" 2020-09-01T12:33:33.0897938Z [36;1mecho "validate false"[0m 2020-09-01T12:33:33.0937876Z shell: /bin/bash -e {0} 2020-09-01T12:33:33.0938078Z ##[endgroup] 2020-09-01T12:33:33.0980449Z ##[debug]/bin/bash -e /home/runner/work/_temp/430455a3-dc68-4cbf-a77e-4796ba5e2915.sh 2020-09-01T12:33:33.1008387Z validate false 2020-09-01T12:33:33.1009975Z ##[debug]Finishing: validate false 2020-09-01T12:33:33.1012514Z ##[debug]Evaluating condition for step: '0' 2020-09-01T12:33:33.1013872Z ##[debug]Evaluating: success() 2020-09-01T12:33:33.1014162Z ##[debug]Evaluating success: 2020-09-01T12:33:33.1014530Z ##[debug]=> true 2020-09-01T12:33:33.1014913Z ##[debug]Result: true 2020-09-01T12:33:33.1015461Z ##[debug]Starting: 0 2020-09-01T12:33:33.1020486Z ##[debug]Loading inputs 2020-09-01T12:33:33.1021224Z ##[debug]Loading env 2020-09-01T12:33:33.1025092Z ##[group]Run echo "::set-output name=out::0" 2020-09-01T12:33:33.1025311Z [36;1mecho "::set-output name=out::0"[0m 2020-09-01T12:33:33.1064661Z shell: /bin/bash -e {0} 2020-09-01T12:33:33.1064870Z ##[endgroup] 2020-09-01T12:33:33.1106364Z ##[debug]/bin/bash -e /home/runner/work/_temp/3833927e-cc63-4167-915b-f6aa9c5ca613.sh 2020-09-01T12:33:33.1136027Z ::set-output name=out::0 2020-09-01T12:33:33.1136401Z ##[debug]steps.out-zero.outputs.out='0' 2020-09-01T12:33:33.1137909Z ##[debug]Finishing: 0 2020-09-01T12:33:33.1140506Z ##[debug]Evaluating condition for step: 'validate zero' 2020-09-01T12:33:33.1142307Z ##[debug]Evaluating: (success() && steps.out-zero.outputs.out) 2020-09-01T12:33:33.1142636Z ##[debug]Evaluating And: 2020-09-01T12:33:33.1142917Z ##[debug]..Evaluating success: 2020-09-01T12:33:33.1143267Z ##[debug]..=> true 2020-09-01T12:33:33.1143584Z ##[debug]..Evaluating Index: 2020-09-01T12:33:33.1143865Z ##[debug]....Evaluating Index: 2020-09-01T12:33:33.1144144Z ##[debug]......Evaluating Index: 2020-09-01T12:33:33.1144443Z ##[debug]........Evaluating steps: 2020-09-01T12:33:33.1144745Z ##[debug]........=> Object 2020-09-01T12:33:33.1145050Z ##[debug]........Evaluating String: 2020-09-01T12:33:33.1145358Z ##[debug]........=> 'out-zero' 2020-09-01T12:33:33.1145669Z ##[debug]......=> Object 2020-09-01T12:33:33.1145957Z ##[debug]......Evaluating String: 2020-09-01T12:33:33.1146241Z ##[debug]......=> 'outputs' 2020-09-01T12:33:33.1146535Z ##[debug]....=> Object 2020-09-01T12:33:33.1146866Z ##[debug]....Evaluating String: 2020-09-01T12:33:33.1147147Z ##[debug]....=> 'out' 2020-09-01T12:33:33.1147435Z ##[debug]..=> '0' 2020-09-01T12:33:33.1147733Z ##[debug]=> '0' 2020-09-01T12:33:33.1148154Z ##[debug]Expanded: (true && '0') 2020-09-01T12:33:33.1148506Z ##[debug]Result: '0' 2020-09-01T12:33:33.1149068Z ##[debug]Starting: validate zero 2020-09-01T12:33:33.1154584Z ##[debug]Loading inputs 2020-09-01T12:33:33.1155363Z ##[debug]Loading env 2020-09-01T12:33:33.1158832Z ##[group]Run echo "validate zero" 2020-09-01T12:33:33.1159036Z [36;1mecho "validate zero"[0m 2020-09-01T12:33:33.1199274Z shell: /bin/bash -e {0} 2020-09-01T12:33:33.1199483Z ##[endgroup] 2020-09-01T12:33:33.1239984Z ##[debug]/bin/bash -e /home/runner/work/_temp/8ec0226a-3876-4be9-9a36-e07fbd51507c.sh 2020-09-01T12:33:33.9960699Z validate zero 2020-09-01T12:33:33.9990761Z ##[debug]Finishing: validate zero 2020-09-01T12:33:34.0032789Z ##[debug]Evaluating condition for step: '1' 2020-09-01T12:33:34.0066168Z ##[debug]Evaluating: success() 2020-09-01T12:33:34.0070866Z ##[debug]Evaluating success: 2020-09-01T12:33:34.0076066Z ##[debug]=> true 2020-09-01T12:33:34.0081900Z ##[debug]Result: true 2020-09-01T12:33:34.0090128Z ##[debug]Starting: 1 2020-09-01T12:33:34.0108091Z ##[debug]Loading inputs 2020-09-01T12:33:34.0111262Z ##[debug]Loading env 2020-09-01T12:33:34.0116403Z ##[group]Run echo "::set-output name=out::1" 2020-09-01T12:33:34.0116672Z [36;1mecho "::set-output name=out::1"[0m 2020-09-01T12:33:34.0159846Z shell: /bin/bash -e {0} 2020-09-01T12:33:34.0160050Z ##[endgroup] 2020-09-01T12:33:34.0206531Z ##[debug]/bin/bash -e /home/runner/work/_temp/3f30adb2-7dcd-4209-ac98-7e310d03b96c.sh 2020-09-01T12:33:34.0241559Z ::set-output name=out::1 2020-09-01T12:33:34.0242146Z ##[debug]steps.out-one.outputs.out='1' 2020-09-01T12:33:34.0243956Z ##[debug]Finishing: 1 2020-09-01T12:33:34.0247101Z ##[debug]Evaluating condition for step: 'validate one' 2020-09-01T12:33:34.0250095Z ##[debug]Evaluating: (success() && steps.out-one.outputs.out) 2020-09-01T12:33:34.0250625Z ##[debug]Evaluating And: 2020-09-01T12:33:34.0250932Z ##[debug]..Evaluating success: 2020-09-01T12:33:34.0251654Z ##[debug]..=> true 2020-09-01T12:33:34.0252043Z ##[debug]..Evaluating Index: 2020-09-01T12:33:34.0252343Z ##[debug]....Evaluating Index: 2020-09-01T12:33:34.0252622Z ##[debug]......Evaluating Index: 2020-09-01T12:33:34.0252912Z ##[debug]........Evaluating steps: 2020-09-01T12:33:34.0253234Z ##[debug]........=> Object 2020-09-01T12:33:34.0253588Z ##[debug]........Evaluating String: 2020-09-01T12:33:34.0253924Z ##[debug]........=> 'out-one' 2020-09-01T12:33:34.0254394Z ##[debug]......=> Object 2020-09-01T12:33:34.0254702Z ##[debug]......Evaluating String: 2020-09-01T12:33:34.0254997Z ##[debug]......=> 'outputs' 2020-09-01T12:33:34.0255283Z ##[debug]....=> Object 2020-09-01T12:33:34.0255599Z ##[debug]....Evaluating String: 2020-09-01T12:33:34.0255875Z ##[debug]....=> 'out' 2020-09-01T12:33:34.0256183Z ##[debug]..=> '1' 2020-09-01T12:33:34.0256479Z ##[debug]=> '1' 2020-09-01T12:33:34.0257002Z ##[debug]Expanded: (true && '1') 2020-09-01T12:33:34.0257353Z ##[debug]Result: '1' 2020-09-01T12:33:34.0258303Z ##[debug]Starting: validate one 2020-09-01T12:33:34.0263683Z ##[debug]Loading inputs 2020-09-01T12:33:34.0264372Z ##[debug]Loading env 2020-09-01T12:33:34.0267845Z ##[group]Run echo "validate one" 2020-09-01T12:33:34.0268051Z [36;1mecho "validate one"[0m 2020-09-01T12:33:34.0306877Z shell: /bin/bash -e {0} 2020-09-01T12:33:34.0307081Z ##[endgroup] 2020-09-01T12:33:34.0347852Z ##[debug]/bin/bash -e /home/runner/work/_temp/6024fd93-80ba-4d84-8e17-8aaae98aac53.sh 2020-09-01T12:33:34.0574956Z validate one 2020-09-01T12:33:34.0578380Z ##[debug]Finishing: validate one 2020-09-01T12:33:34.0584700Z ##[debug]Starting: Complete job 2020-09-01T12:33:34.0585341Z Cleaning up orphan processes 2020-09-01T12:33:34.0760007Z ##[debug]Finishing: Complete job 2020-09-01T12:33:34.0766754Z ##[debug]Finishing: test ``` </details> ## Act result ``` $ sudo act push [conditional test/test] 🚀 Start image=node:12.6-buster-slim [conditional test/test] 🐳 docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [conditional test/test] ⭐ Run true [conditional test/test] ⚙ ::set-output:: out=true [conditional test/test] ✅ Success - true [conditional test/test] ⭐ Run validate true | validate true [conditional test/test] ✅ Success - validate true [conditional test/test] ⭐ Run false [conditional test/test] ⚙ ::set-output:: out=false [conditional test/test] ✅ Success - false [conditional test/test] ⭐ Run 0 [conditional test/test] ⚙ ::set-output:: out=0 [conditional test/test] ✅ Success - 0 [conditional test/test] ⭐ Run 1 [conditional test/test] ⚙ ::set-output:: out=1 [conditional test/test] ✅ Success - 1 [conditional test/test] ⭐ Run validate one | validate one [conditional test/test] ✅ Success - validate one ``` <details> <summary>Full logs taken with `--verbose` flag</summary> ``` > sudo act --verbose push [sudo] password for sarisia: DEBU[0000] Loading environment from /home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.env DEBU[0000] Loading secrets from DEBU[0000] Loading workflows from '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.github/workflows' DEBU[0000] Reading workflow '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.github/workflows/test.yml' DEBU[0000] Planning event: push DEBU[0000] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0000] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0000] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0000] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0000] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' DEBU[0000] HEAD matches refs/heads/master DEBU[0000] using github ref: refs/heads/master DEBU[0000] context env => map[] [conditional test/test] 🚀 Start image=node:12.6-buster-slim DEBU[0000] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0000] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0000] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0000] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0000] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' DEBU[0000] HEAD matches refs/heads/master DEBU[0000] using github ref: refs/heads/master [conditional test/test] 🐳 docker pull node:12.6-buster-slim DEBU[0000] Image exists? true [conditional test/test] 🐳 docker create image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [conditional test/test] Created container name=act-conditional-test-test id=074972da493ab2421a7ce6887968066a13d96b5a13267a319b54cc29b8e43c3d from image node:12.6-buster-slim [conditional test/test] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp] [conditional test/test] 🐳 docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [conditional test/test] Starting container: 074972da493ab2421a7ce6887968066a13d96b5a13267a319b54cc29b8e43c3d [conditional test/test] Started container: 074972da493ab2421a7ce6887968066a13d96b5a13267a319b54cc29b8e43c3d DEBU[0001] Writing entry to tarball workflow/event.json len:2 DEBU[0001] Writing entry to tarball home/.act len:0 [conditional test/test] Extracting content to '/github/' DEBU[0001] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0001] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0001] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' DEBU[0001] HEAD matches refs/heads/master DEBU[0001] using github ref: refs/heads/master DEBU[0001] setupEnv => map[GITHUB_ACTION:out-true GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] DEBU[0001] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0001] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0001] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' DEBU[0001] HEAD matches refs/heads/master DEBU[0001] using github ref: refs/heads/master DEBU[0001] context env => map[] DEBU[0001] context env => map[GITHUB_ACTION:out-true GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] [conditional test/test] ⭐ Run true DEBU[0001] Wrote command 'echo "::set-output name=out::true"' to 'workflow/out-true' DEBU[0001] Writing entry to tarball workflow/out-true len:50 [conditional test/test] Extracting content to '/github/' [conditional test/test] Exec command '[bash --noprofile --norc -eo pipefail /github/workflow/out-true]' [conditional test/test] ⚙ ::set-output:: out=true [conditional test/test] ✅ Success - true DEBU[0001] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0001] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0001] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' DEBU[0001] HEAD matches refs/heads/master DEBU[0001] using github ref: refs/heads/master DEBU[0001] setupEnv => map[GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] DEBU[0001] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0001] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0001] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' DEBU[0001] HEAD matches refs/heads/master DEBU[0001] using github ref: refs/heads/master DEBU[0001] context env => map[] DEBU[0001] context env => map[GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] DEBU[0001] Evaluating 'steps['out-true']['outputs']['out']' instead of 'steps.out-true.outputs.out' DEBU[0001] expression 'Boolean(true)' evaluated to 'true' [conditional test/test] ⭐ Run validate true DEBU[0001] Wrote command 'echo "validate true"' to 'workflow/1' DEBU[0001] Writing entry to tarball workflow/1 len:36 [conditional test/test] Extracting content to '/github/' [conditional test/test] Exec command '[bash --noprofile --norc -eo pipefail /github/workflow/1]' | validate true [conditional test/test] ✅ Success - validate true DEBU[0001] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0001] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0001] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' DEBU[0001] HEAD matches refs/heads/master DEBU[0001] using github ref: refs/heads/master DEBU[0001] setupEnv => map[GITHUB_ACTION:out-false GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] DEBU[0001] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0001] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0001] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0001] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' DEBU[0001] HEAD matches refs/heads/master DEBU[0001] using github ref: refs/heads/master DEBU[0001] context env => map[] DEBU[0001] context env => map[GITHUB_ACTION:out-false GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] [conditional test/test] ⭐ Run false DEBU[0001] Wrote command 'echo "::set-output name=out::false"' to 'workflow/out-false' DEBU[0001] Writing entry to tarball workflow/out-false len:51 [conditional test/test] Extracting content to '/github/' [conditional test/test] Exec command '[bash --noprofile --norc -eo pipefail /github/workflow/out-false]' [conditional test/test] ⚙ ::set-output:: out=false [conditional test/test] ✅ Success - false DEBU[0002] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0002] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0002] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' DEBU[0002] HEAD matches refs/heads/master DEBU[0002] using github ref: refs/heads/master DEBU[0002] setupEnv => map[GITHUB_ACTION:3 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] DEBU[0002] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0002] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0002] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' DEBU[0002] HEAD matches refs/heads/master DEBU[0002] using github ref: refs/heads/master DEBU[0002] context env => map[] DEBU[0002] context env => map[GITHUB_ACTION:3 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] DEBU[0002] Evaluating 'steps['out-false']['outputs']['out']' instead of 'steps.out-false.outputs.out' DEBU[0002] expression 'Boolean(false)' evaluated to 'false' DEBU[0002] Skipping step 'validate false' due to '${{ steps.out-false.outputs.out }}' DEBU[0002] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0002] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0002] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' DEBU[0002] HEAD matches refs/heads/master DEBU[0002] using github ref: refs/heads/master DEBU[0002] setupEnv => map[GITHUB_ACTION:out-zero GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] DEBU[0002] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0002] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0002] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' DEBU[0002] HEAD matches refs/heads/master DEBU[0002] using github ref: refs/heads/master DEBU[0002] context env => map[] DEBU[0002] context env => map[GITHUB_ACTION:out-zero GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] [conditional test/test] ⭐ Run 0 DEBU[0002] Wrote command 'echo "::set-output name=out::0"' to 'workflow/out-zero' DEBU[0002] Writing entry to tarball workflow/out-zero len:47 [conditional test/test] Extracting content to '/github/' [conditional test/test] Exec command '[bash --noprofile --norc -eo pipefail /github/workflow/out-zero]' [conditional test/test] ⚙ ::set-output:: out=0 [conditional test/test] ✅ Success - 0 DEBU[0002] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0002] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0002] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' DEBU[0002] HEAD matches refs/heads/master DEBU[0002] using github ref: refs/heads/master DEBU[0002] setupEnv => map[GITHUB_ACTION:5 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] DEBU[0002] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0002] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0002] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' DEBU[0002] HEAD matches refs/heads/master DEBU[0002] using github ref: refs/heads/master DEBU[0002] context env => map[] DEBU[0002] context env => map[GITHUB_ACTION:5 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] DEBU[0002] Evaluating 'steps['out-zero']['outputs']['out']' instead of 'steps.out-zero.outputs.out' DEBU[0002] expression 'Boolean(0)' evaluated to 'false' DEBU[0002] Skipping step 'validate zero' due to '${{ steps.out-zero.outputs.out }}' DEBU[0002] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0002] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0002] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' DEBU[0002] HEAD matches refs/heads/master DEBU[0002] using github ref: refs/heads/master DEBU[0002] setupEnv => map[GITHUB_ACTION:out-one GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] DEBU[0002] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0002] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0002] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' DEBU[0002] HEAD matches refs/heads/master DEBU[0002] using github ref: refs/heads/master DEBU[0002] context env => map[] DEBU[0002] context env => map[GITHUB_ACTION:out-one GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] [conditional test/test] ⭐ Run 1 DEBU[0002] Wrote command 'echo "::set-output name=out::1"' to 'workflow/out-one' DEBU[0002] Writing entry to tarball workflow/out-one len:47 [conditional test/test] Extracting content to '/github/' [conditional test/test] Exec command '[bash --noprofile --norc -eo pipefail /github/workflow/out-one]' [conditional test/test] ⚙ ::set-output:: out=1 [conditional test/test] ✅ Success - 1 DEBU[0002] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0002] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0002] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' DEBU[0002] HEAD matches refs/heads/master DEBU[0002] using github ref: refs/heads/master DEBU[0002] setupEnv => map[GITHUB_ACTION:7 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] DEBU[0002] Loading slug from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0002] Loading revision from git directory '/home/sarisia/repo/github.com/kirchen-bell/actions-conditional-test/.git' DEBU[0002] Found revision: 4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 DEBU[0002] HEAD points to '4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8' DEBU[0002] HEAD matches refs/heads/master DEBU[0002] using github ref: refs/heads/master DEBU[0002] context env => map[] DEBU[0002] context env => map[GITHUB_ACTION:7 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:refs/heads/master GITHUB_REPOSITORY:kirchen-bell/actions-conditional-test GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:4e11d0ad9dd46f90337c31ec04a137fc1ff4e2d8 GITHUB_TOKEN: GITHUB_WORKFLOW:conditional test GITHUB_WORKSPACE:/github/workspace HOME:/github/home] DEBU[0002] Evaluating 'steps['out-one']['outputs']['out']' instead of 'steps.out-one.outputs.out' DEBU[0002] expression 'Boolean(1)' evaluated to 'true' [conditional test/test] ⭐ Run validate one DEBU[0002] Wrote command 'echo "validate one"' to 'workflow/7' DEBU[0002] Writing entry to tarball workflow/7 len:35 [conditional test/test] Extracting content to '/github/' [conditional test/test] Exec command '[bash --noprofile --norc -eo pipefail /github/workflow/7]' | validate one [conditional test/test] ✅ Success - validate one [conditional test/test] Removed container: 074972da493ab2421a7ce6887968066a13d96b5a13267a319b54cc29b8e43c3d [conditional test/test] 🐳 docker volume rm act-conditional-test-test ``` </details> # Just FYI... If I do `==` comparison in `if` conditional, Act acts as same as GitHub Actions: ```yaml name: conditional test 2 on: push: workflow_dispatch: jobs: test: runs-on: ubuntu-latest steps: - name: 'true' id: 'out-true' run: echo "::set-output name=out::true" - name: validate true if: ${{ steps.out-true.outputs.out == true }} run: echo "validate true" - name: 'false' id: 'out-false' run: echo "::set-output name=out::false" - name: validate false if: ${{ steps.out-false.outputs.out == true }} run: echo "validate false" - name: '0' id: 'out-zero' run: echo "::set-output name=out::0" - name: validate zero if: ${{ steps.out-zero.outputs.out == true }} run: echo "validate zero" - name: '1' id: 'out-one' run: echo "::set-output name=out::1" - name: validate one if: ${{ steps.out-one.outputs.out == true }} run: echo "validate one" ``` ![Untitled (1)](https://user-images.githubusercontent.com/33576079/91892198-303d5c80-eccd-11ea-864d-b48a3cf1331b.png) ``` > sudo act push [conditional test 2/test] 🚀 Start image=node:12.6-buster-slim [conditional test 2/test] 🐳 docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [conditional test 2/test] ⭐ Run true [conditional test 2/test] ⚙ ::set-output:: out=true [conditional test 2/test] ✅ Success - true [conditional test 2/test] ⭐ Run false [conditional test 2/test] ⚙ ::set-output:: out=false [conditional test 2/test] ✅ Success - false [conditional test 2/test] ⭐ Run 0 [conditional test 2/test] ⚙ ::set-output:: out=0 [conditional test 2/test] ✅ Success - 0 [conditional test 2/test] ⭐ Run 1 [conditional test 2/test] ⚙ ::set-output:: out=1 [conditional test 2/test] ✅ Success - 1 [conditional test 2/test] ⭐ Run validate one | validate one [conditional test 2/test] ✅ Success - validate one ```
kerem closed this issue 2026-03-01 21:41:46 +03:00
Author
Owner

@jakesylvestre commented on GitHub (Sep 8, 2020):

I'm having a similiar issue. This resolves to false:

if: true || ! contains(toJSON(github.event.commits.*.message), '[ci skip]')"

<!-- gh-comment-id:688586573 --> @jakesylvestre commented on GitHub (Sep 8, 2020): I'm having a similiar issue. This resolves to false: ` if: true || ! contains(toJSON(github.event.commits.*.message), '[ci skip]')"`
Author
Owner

@github-actions[bot] commented on GitHub (Nov 8, 2020):

Issue is stale and will be closed in 7 days unless there is new activity

<!-- gh-comment-id:723512998 --> @github-actions[bot] commented on GitHub (Nov 8, 2020): Issue is stale and will be closed in 7 days unless there is new activity
Author
Owner

@torbjornvatn commented on GitHub (Nov 13, 2020):

I'm looking into this as I've made some of the changes made to the parsing of if: expressions lately.
I've added even more test cases and double checking the test cases in a "real" github actions workflow to be certain that Act has the exact same behavior as the real thing.

Hoping to have a PR ready over the weekend @cplee

<!-- gh-comment-id:726671384 --> @torbjornvatn commented on GitHub (Nov 13, 2020): I'm looking into this as I've made some of the changes made to the parsing of `if:` expressions lately. I've added even more test cases and double checking the test cases in a "real" github actions workflow to be certain that Act has the exact same behavior as the real thing. Hoping to have a PR ready over the weekend @cplee
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#248
No description provided.