Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input default values are not interpreted in step conditional when using external actions #2501

Open
philipreinken opened this issue Oct 23, 2024 · 0 comments
Labels
kind/bug Something isn't working

Comments

@philipreinken
Copy link

philipreinken commented Oct 23, 2024

Bug report info

gh act --bug-report
act version:            0.2.68
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 12
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
	/var/run/docker.sock
Config files:           
	/home/philip/.config/act/actrc:
		-P "ubuntu-latest=catthehacker/ubuntu:act-latest"
		-P "ubuntu-22.04=catthehacker/ubuntu:act-22.04"
		-P "ubuntu-20.04=catthehacker/ubuntu:act-20.04"
		-P "ubuntu-18.04=catthehacker/ubuntu:act-18.04"
Build info:
	Go version:            go1.21.13
	Module path:           github.com/nektos/act
	Main version:          (devel)
	Main path:             github.com/nektos/act
	Main checksum:         
	Build settings:
		-buildmode:           exe
		-compiler:            gc
		-trimpath:            true
		CGO_ENABLED:          0
		GOARCH:               amd64
		GOOS:                 linux
		GOAMD64:              v1
		vcs:                  git
		vcs.revision:         3f5d34d38dec16a3c4cec1e8aab00d5f123727b2
		vcs.time:             2024-09-07T22:56:04Z
		vcs.modified:         true
Docker Engine:
	Engine version:        27.3.1
	Engine runtime:        runc
	Cgroup version:        2
	Cgroup driver:         systemd
	Storage driver:        overlay2
	Registry URI:          https://index.docker.io/v1/
	OS:                    Ubuntu 24.04.1 LTS
	OS type:               linux
	OS version:            24.04
	OS arch:               x86_64
	OS kernel:             6.8.0-47-generic
	OS CPU:                12
	OS memory:             31840 MB
	Security options:
		name=apparmor
		name=seccomp,profile=builtin
		name=cgroupns

Command used with act

gh act

Describe issue

Hi all 👋

I stumbled upon this behaviour, which I think might be a bug - given the following step:

- name: Step referencing action
  uses: actions/checkout@v4
  id: checkout
  env:
    FOO_VAL: ${{ inputs.bar == 'baz' }}
  if: ${{ inputs.bar == 'baz' }}

The inputs default value is set as expected when evaluating the expression for setting the FOO_VAL environment variable:

[Testworkflow/test] [DEBUG] expression '${{ inputs.bar == 'baz' }}' rewritten to 'format('{0}', inputs.bar == 'baz')'                                                                                                 
[Testworkflow/test] [DEBUG] evaluating expression 'format('{0}', inputs.bar == 'baz')'                                                                                                                                
[Testworkflow/test] [DEBUG] expression 'format('{0}', inputs.bar == 'baz')' evaluated to '%!t(string=true)'
# ...
[Testworkflow/test] [DEBUG] setupEnv => map[ ... FOO_VAL:true ]

This is not the case when the step execution conditional is interpreted:

[Testworkflow/test] [DEBUG] evaluating expression '${{ inputs.bar == 'baz' }}'                                                                                                                                                                                                                                                                                                                                                               
[Testworkflow/test] [DEBUG] expression '${{ inputs.bar == 'baz' }}' evaluated to 'false'                                                                                                                                                                                                                                                                                                                                                     
[Testworkflow/test] [DEBUG] Skipping step 'Step referencing action' due to '${{ inputs.bar == 'baz' }}'

This results in the step being skipped.
I'd expect the expressions to be interpreted the same way.

This is by the way only the case for the step referencing an external action, the run step right below is executed.

I've referenced a repo where this behaviour can be reproduced.

Link to GitHub repository

https://github.com/philipreinken/20241023-2007-debug-act

Workflow content

---
# .github/workflows/workflow.yml

name: Testworkflow
on:
  push:
    branches:
      - main

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      - name: Testworkflow
        uses: ./.github/actions/foo

---
# .github/actions/foo/action.yml

name: foo
description: "Foo"

inputs:
  bar:
    description: "Bar"
    required: false
    default: "baz"

runs:
  using: "composite"
  steps:
    - name: Step referencing action
      uses: actions/checkout@v4
      id: checkout
      env:
        FOO_VAL: ${{ inputs.bar == 'baz' }} # true
      if: ${{ inputs.bar == 'baz' }} # false, so this step is always skipped

    - name: Debug
      run: |
        echo "RESULT: ${{ steps.checkout.conclusion }}"
        echo "FOO_VAL: $FOO_VAL"
      shell: bash
      env:
        FOO_VAL: ${{ inputs.bar == 'baz' }} # true
      if: ${{ inputs.bar == 'baz' }} # true as well

Relevant log output

gh act --verbose
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/event.json len:2
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[Testworkflow/test] [DEBUG] Extracting content to '/var/run/act/'
[Testworkflow/test]   🐳  docker exec cmd=[node --no-warnings -e console.log(process.execPath)] user= workdir=
[Testworkflow/test] [DEBUG] Exec command '[node --no-warnings -e console.log(process.execPath)]'
[Testworkflow/test] [DEBUG] Working directory '/tmp/tmp.9vZoel1qAy'
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Skipping local actions/checkout because workdir was already copied
[Testworkflow/test] [DEBUG] skip pre step for 'actions/checkout@v4': no action model available
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Skipping local actions/checkout because workdir was already copied
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.1.122:34653/ CI:true GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v4 GITHUB_ACTION_REPOSITORY:actions/checkout GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_REF:refs/heads/main GITHUB_REF_NAME:main GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:philipreinken/20241023-2007-debug-act GITHUB_REPOSITORY_OWNER:philipreinken GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ATTEMPT:1 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:b12bd5c2099f4f15bd51c3958affe53f3dcb79cd GITHUB_WORKFLOW:Testworkflow GITHUB_WORKSPACE:/tmp/tmp.9vZoel1qAy ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] evaluating expression ''
[Testworkflow/test] [DEBUG] expression '' evaluated to 'true'
[Testworkflow/test] ⭐ Run Main actions/checkout@v4
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[Testworkflow/test] [DEBUG] Extracting content to '/var/run/act'
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test]   🐳  docker cp src=/tmp/tmp.9vZoel1qAy/. dst=/tmp/tmp.9vZoel1qAy
[Testworkflow/test] [DEBUG] Writing tarball /tmp/act3334699767 from /tmp/tmp.9vZoel1qAy/.
[Testworkflow/test] [DEBUG] Stripping prefix:/tmp/tmp.9vZoel1qAy/ src:/tmp/tmp.9vZoel1qAy/.
[Testworkflow/test] [DEBUG] Extracting content from '/tmp/act3334699767' to '/tmp/tmp.9vZoel1qAy'
[Testworkflow/test]   ✅  Success - Main actions/checkout@v4
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.1.122:34653/ CI:true GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_REF:refs/heads/main GITHUB_REF_NAME:main GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:philipreinken/20241023-2007-debug-act GITHUB_REPOSITORY_OWNER:philipreinken GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ATTEMPT:1 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:b12bd5c2099f4f15bd51c3958affe53f3dcb79cd GITHUB_WORKFLOW:Testworkflow GITHUB_WORKSPACE:/tmp/tmp.9vZoel1qAy ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] evaluating expression ''
[Testworkflow/test] [DEBUG] expression '' evaluated to 'true'
[Testworkflow/test] ⭐ Run Main Testworkflow
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[Testworkflow/test] [DEBUG] Extracting content to '/var/run/act'
[Testworkflow/test] [DEBUG] Read action &{foo  Foo map[bar:{Bar false baz}] map[] {composite map[]   always()  always()     [] [{checkout {8 0 !!str ${{ inputs.bar == 'baz' }}  <nil> []  # false, so this step is always skipped  18 11} Step referencing action actions/checkout@v4     {4 0 !!map   <nil> [0xc0000ef040 0xc0000ef180]    17 9} map[]  } { {8 0 !!str ${{ inputs.bar == 'baz' }}  <nil> []  # false, so this step is always skipped  27 11} Debug  echo "RESULT: ${{ steps.checkout.conclusion }}"
echo "FOO_VAL: $FOO_VAL"
   bash {4 0 !!map   <nil> [0xc00035ac80 0xc00035adc0]    26 9} map[]  }]} { }} from 'Unknown'
[Testworkflow/test] [DEBUG] About to run action &{foo  Foo map[bar:{Bar false baz}] map[] {composite map[]   always()  always()     [] [{checkout {8 0 !!str ${{ inputs.bar == 'baz' }}  <nil> []  # false, so this step is always skipped  18 11} Step referencing action actions/checkout@v4     {4 0 !!map   <nil> [0xc0000ef040 0xc0000ef180]    17 9} map[]  } { {8 0 !!str ${{ inputs.bar == 'baz' }}  <nil> []  # false, so this step is always skipped  27 11} Debug  echo "RESULT: ${{ steps.checkout.conclusion }}"
echo "FOO_VAL: $FOO_VAL"
   bash {4 0 !!map   <nil> [0xc00035ac80 0xc00035adc0]    26 9} map[]  }]} { }}
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] type=local-action actionDir=/tmp/tmp.9vZoel1qAy/.github/actions/foo actionPath= workdir=/tmp/tmp.9vZoel1qAy actionCacheDir=/home/philip/.cache/act actionName=./.github/actions/foo containerActionDir=/tmp/tmp.9vZoel1qAy/.github/actions/foo
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Skipping local actions/checkout because workdir was already copied
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] expression '${{ inputs.bar == 'baz' }}' rewritten to 'format('{0}', inputs.bar == 'baz')'
[Testworkflow/test] [DEBUG] evaluating expression 'format('{0}', inputs.bar == 'baz')'
[Testworkflow/test] [DEBUG] expression 'format('{0}', inputs.bar == 'baz')' evaluated to '%!t(string=true)'
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.1.122:34653/ CI:true FOO_VAL:true GITHUB_ACTION:checkout GITHUB_ACTIONS:true GITHUB_ACTION_PATH:/tmp/tmp.9vZoel1qAy/.github/actions/foo GITHUB_ACTION_REF:v4 GITHUB_ACTION_REPOSITORY:actions/checkout GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_OUTPUT:/var/run/act/workflow/outputcmd.txt GITHUB_PATH:/var/run/act/workflow/pathcmd.txt GITHUB_REF:refs/heads/main GITHUB_REF_NAME:main GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:philipreinken/20241023-2007-debug-act GITHUB_REPOSITORY_OWNER:philipreinken GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ATTEMPT:1 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:b12bd5c2099f4f15bd51c3958affe53f3dcb79cd GITHUB_STATE:/var/run/act/workflow/statecmd.txt GITHUB_STEP_SUMMARY:/var/run/act/workflow/SUMMARY.md GITHUB_WORKFLOW:Testworkflow GITHUB_WORKSPACE:/tmp/tmp.9vZoel1qAy ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] evaluating expression '${{ inputs.bar == 'baz' }}'
[Testworkflow/test] [DEBUG] expression '${{ inputs.bar == 'baz' }}' evaluated to 'false'
[Testworkflow/test] [DEBUG] Skipping step 'Step referencing action' due to '${{ inputs.bar == 'baz' }}'
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] expression '${{ inputs.bar == 'baz' }}' rewritten to 'format('{0}', inputs.bar == 'baz')'
[Testworkflow/test] [DEBUG] evaluating expression 'format('{0}', inputs.bar == 'baz')'
[Testworkflow/test] [DEBUG] expression 'format('{0}', inputs.bar == 'baz')' evaluated to '%!t(string=true)'
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.1.122:34653/ CI:true FOO_VAL:true GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTION_PATH:/tmp/tmp.9vZoel1qAy/.github/actions/foo GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_OUTPUT:/var/run/act/workflow/outputcmd.txt GITHUB_PATH:/var/run/act/workflow/pathcmd.txt GITHUB_REF:refs/heads/main GITHUB_REF_NAME:main GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:philipreinken/20241023-2007-debug-act GITHUB_REPOSITORY_OWNER:philipreinken GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ATTEMPT:1 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:b12bd5c2099f4f15bd51c3958affe53f3dcb79cd GITHUB_STATE:/var/run/act/workflow/statecmd.txt GITHUB_STEP_SUMMARY:/var/run/act/workflow/SUMMARY.md GITHUB_WORKFLOW:Testworkflow GITHUB_WORKSPACE:/tmp/tmp.9vZoel1qAy INPUT_BAR:baz ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] evaluating expression '${{ inputs.bar == 'baz' }}'
[Testworkflow/test] [DEBUG] expression '${{ inputs.bar == 'baz' }}' evaluated to 'true'
[Testworkflow/test] ⭐ Run Main Debug
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[Testworkflow/test] [DEBUG] Extracting content to '/var/run/act'
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] expression 'echo "RESULT: ${{ steps.checkout.conclusion }}"
echo "FOO_VAL: $FOO_VAL"
' rewritten to 'format('echo "RESULT: {0}"
echo "FOO_VAL: $FOO_VAL"
', steps.checkout.conclusion)'
[Testworkflow/test] [DEBUG] evaluating expression 'format('echo "RESULT: {0}"
echo "FOO_VAL: $FOO_VAL"
', steps.checkout.conclusion)'
[Testworkflow/test] [DEBUG] expression 'format('echo "RESULT: {0}"
echo "FOO_VAL: $FOO_VAL"
', steps.checkout.conclusion)' evaluated to '%!t(string=echo "RESULT: skipped"
echo "FOO_VAL: $FOO_VAL"
)'
[Testworkflow/test] [DEBUG] Wrote command 

echo "RESULT: skipped"
echo "FOO_VAL: $FOO_VAL"


 to 'workflow/1-composite-1.sh'
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/1-composite-1.sh len:50
[Testworkflow/test] [DEBUG] Extracting content to '/var/run/act'
[Testworkflow/test]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/1-composite-1.sh] user= workdir=
[Testworkflow/test] [DEBUG] Exec command '[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/1-composite-1.sh]'
[Testworkflow/test] [DEBUG] Working directory '/tmp/tmp.9vZoel1qAy'
[Testworkflow/test]   | RESULT: skipped
[Testworkflow/test]   | FOO_VAL: true
[Testworkflow/test]   ✅  Success - Main Debug
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test]   ✅  Success - Main Testworkflow
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://192.168.1.122:34653/ CI:true GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF: GITHUB_ACTION_REPOSITORY: GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:test GITHUB_OUTPUT:/var/run/act/workflow/outputcmd.txt GITHUB_PATH:/var/run/act/workflow/pathcmd.txt GITHUB_REF:refs/heads/main GITHUB_REF_NAME:main GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:philipreinken/20241023-2007-debug-act GITHUB_REPOSITORY_OWNER:philipreinken GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ATTEMPT:1 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:b12bd5c2099f4f15bd51c3958affe53f3dcb79cd GITHUB_STATE:/var/run/act/workflow/statecmd.txt GITHUB_STEP_SUMMARY:/var/run/act/workflow/SUMMARY.md GITHUB_WORKFLOW:Testworkflow GITHUB_WORKSPACE:/tmp/tmp.9vZoel1qAy ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID:]
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] evaluating expression 'always()'
[Testworkflow/test] [DEBUG] expression 'always()' evaluated to 'true'
[Testworkflow/test] ⭐ Run Post Testworkflow
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/outputcmd.txt len:0
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/statecmd.txt len:0
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/pathcmd.txt len:0
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[Testworkflow/test] [DEBUG] Writing entry to tarball workflow/SUMMARY.md len:0
[Testworkflow/test] [DEBUG] Extracting content to '/var/run/act'
[Testworkflow/test] [DEBUG] run post step for 'Testworkflow'
[Testworkflow/test] [DEBUG] skipping post step for 'Step referencing action'; main step was skipped
[Testworkflow/test]   ✅  Success - Post Testworkflow
[Testworkflow/test] [DEBUG] skipping post step for 'actions/checkout@v4': no action model available
[Testworkflow/test] Cleaning up container for job test
[Testworkflow/test] [DEBUG] Removed container: a4ca95f8b2d2a4fc69e5d9e87a517c6aea8e7b0c941146e78a3a87f8782b44b0
[Testworkflow/test] [DEBUG]   🐳  docker volume rm act-Testworkflow-test-201555bb211fdcbc53f7f307203397e75e1cf3e2fb26ba89a2658cd56e8e4bbf
[Testworkflow/test] [DEBUG]   🐳  docker volume rm act-Testworkflow-test-201555bb211fdcbc53f7f307203397e75e1cf3e2fb26ba89a2658cd56e8e4bbf-env
[Testworkflow/test] 🏁  Job succeeded
[Testworkflow/test] [DEBUG] Loading revision from git directory
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd
[Testworkflow/test] [DEBUG] HEAD points to 'b12bd5c2099f4f15bd51c3958affe53f3dcb79cd'
[Testworkflow/test] [DEBUG] using github ref: refs/heads/main
[Testworkflow/test] [DEBUG] Found revision: b12bd5c2099f4f15bd51c3958affe53f3dcb79cd

Additional information

No response

@philipreinken philipreinken added the kind/bug Something isn't working label Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant