[GH-ISSUE #1442] Ambiguous redirect $GITHUB_OUTPUT with latest versions and images #750

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

Originally created by @sdepablos on GitHub (Nov 15, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/1442

Bug report info

act version:            0.2.33
GOOS:                   linux
GOARCH:                 amd64
NumCPU:                 8
Docker host:            DOCKER_HOST environment variable is unset/empty.
Sockets found:
	/var/run/docker.sock
Config files:           
	/home/sergi/.actrc:
		-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest
		-P ubuntu-20.04=ghcr.io/catthehacker/ubuntu:act-20.04
		-P ubuntu-18.04=ghcr.io/catthehacker/ubuntu:act-18.04
Build info:
	Go version:            go1.19.2
	Module path:           github.com/nektos/act
	Main version:          (devel)
	Main path:             github.com/nektos/act
	Main checksum:         
	Build settings:
		-compiler:            gc
		-trimpath:            true
		CGO_ENABLED:          1
		GOARCH:               amd64
		GOOS:                 linux
		GOAMD64:              v1
		vcs:                  git
		vcs.revision:         1a32c043c11504dca5589ad3ea77344c2b40d152
		vcs.time:             2022-11-07T13:56:47Z
		vcs.modified:         true
Docker Engine:
	Engine version:        20.10.21
	Engine runtime:        runc
	Cgroup version:        2
	Cgroup driver:         systemd
	Storage driver:        overlay2
	Registry URI:          https://index.docker.io/v1/
	OS:                    Manjaro Linux
	OS type:               linux
	OS version:            
	OS arch:               x86_64
	OS kernel:             5.15.76-1-MANJARO
	OS CPU:                8
	OS memory:             31828 MB
	Security options:
		name=apparmor
		name=seccomp,profile=default
		name=cgroupns

Command used with act

act push -v -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-22.04 -j test_github_output

Describe issue

Whatever I try, when using $GITHUB_OUTPUT I get an error "$GITHUB_OUTPUT: ambiguous redirect". If I set it out in the env, I don't get an error, but still, it does not work.

No response

Workflow content

name: Test GITHUB_OUTPUT
on: [push]     
jobs:
  test_github_output:
    runs-on: ubuntu-latest
    steps:
      - name: Set color
        id: random-color-generator
        run: echo "SELECTED_COLOR=green" >> $GITHUB_OUTPUT
      - name: Get color
        run: echo "The selected color is ${{ steps.random-color-generator.outputs.SELECTED_COLOR }}"

Relevant log output

DEBU[0000] Loading environment from /home/projects/dbt/.env 
DEBU[0000] Loading secrets from /home/projects/dbt/.secrets 
DEBU[0000] Loading workflows from '/home/projects/dbt/.github/workflows' 
DEBU[0000] Loading workflows recursively                
DEBU[0000] Found workflow 'test.yml' in '/home/projects/dbt/.github/workflows/test.yml'
DEBU[0000] Reading workflow '/home/projects/dbt/.github/workflows/test.yml' 
DEBU[0000]< Using first passed in arguments event for filtering: push 
DEBU[0000] Preparing plan with a job: test_github_output 
DEBU[0000] Using first passed in arguments event: push  
DEBU[0000] Planning job: test_github_output             
DEBU[0000] Loading slug from git directory '/home/projects/dbt/.git' 
DEBU[0000] Loading revision from git directory '/home/projects/dbt/.git' 
DEBU[0000] Found revision: 8f75a516902c44aa453118d051af66f61a604cae 
DEBU[0000] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae' 
DEBU[0000] using github ref: refs/heads/check_constants 
DEBU[0000] Found revision: 8f75a516902c44aa453118d051af66f61a604cae 
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] evaluating expression 'success()'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] expression 'success()' evaluated to 'true'
[Test $GITHUB_OUTPUT/test_github_output] 🚀  Start image=ghcr.io/catthehacker/ubuntu:act-22.04
[Test $GITHUB_OUTPUT/test_github_output]   🐳  docker pull image=ghcr.io/catthehacker/ubuntu:act-22.04 platform= username= forcePull=false
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG]   🐳  docker pull ghcr.io/catthehacker/ubuntu:act-22.04
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Image exists? true
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Removed container: 480244ae41f3a7d6d444ec93731b1322fdd9e839135f87f1cc2030ec120d127f
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG]   🐳  docker volume rm act-Test-GITHUB-OUTPUT-test-github-output
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG]   🐳  docker volume rm act-Test-GITHUB-OUTPUT-test-github-output-env
[Test $GITHUB_OUTPUT/test_github_output]   🐳  docker create image=ghcr.io/catthehacker/ubuntu:act-22.04 platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Common container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:false AttachStderr:false ExposedPorts:map[] Tty:true OpenStdin:false StdinOnce:false Env:[RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:ghcr.io/catthehacker/ubuntu:act-22.04 Volumes:map[] WorkingDir:/home/projects/dbt Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Common container.HostConfig ==> &{Binds:[/var/run/docker.sock:/var/run/docker.sock] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:host PortBindings:map[] RestartPolicy:{Name: MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: ConsoleSize:[0 0] Isolation: Resources:{CPUShares:0 Memory:0 NanoCPUs:0 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:0 MemorySwappiness:<nil> OomKillDisable:<nil> PidsLimit:<nil> Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[{Type:volume Source:act-toolcache Target:/toolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil>} {Type:volume Source:act-Test-GITHUB-OUTPUT-test-github-output-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil>} {Type:volume Source:act-Test-GITHUB-OUTPUT-test-github-output Target:/home/projects/dbt ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Created container name=act-Test-GITHUB-OUTPUT-test-github-output id=8b71e938aa6ecd9f49a1e3e46a3bbd0a0d648c4bd5554e0d981dfa172dffeca9 from image ghcr.io/catthehacker/ubuntu:act-22.04 (platform: )
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp]
[Test $GITHUB_OUTPUT/test_github_output]   🐳  docker run image=ghcr.io/catthehacker/ubuntu:act-22.04 platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Starting container: 8b71e938aa6ecd9f49a1e3e46a3bbd0a0d648c4bd5554e0d981dfa172dffeca9
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Started container: 8b71e938aa6ecd9f49a1e3e46a3bbd0a0d648c4bd5554e0d981dfa172dffeca9
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Writing entry to tarball workflow/event.json len:2
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Writing entry to tarball workflow/envs.txt len:0
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Writing entry to tarball workflow/paths.txt len:0
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Extracting content to '/var/run/act/'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] setupEnv => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:random-color-generator 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 GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/check_constants GITHUB_REF_NAME:check_constants GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:cdbt GITHUB_REPOSITORY_OWNER:company GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:8f75a516902c44aa453118d051af66f61a604cae GITHUB_TOKEN:*** GITHUB_WORKFLOW:Test $GITHUB_OUTPUT GITHUB_WORKSPACE:/home/projects/dbt IMAGE_OS:ubuntu22 ImageOS:ubuntu20 LSB_OS_VERSION:2204 LSB_RELEASE:22.04 PATH:/opt/hostedtoolcache/node/16.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root]
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] evaluating expression ''
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] expression '' evaluated to 'true'
[Test $GITHUB_OUTPUT/test_github_output] ⭐ Run Main Set color
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Wrote command 

echo "SELECTED_COLOR=green" >> $GITHUB_OUTPUT

 to 'workflow/random-color-generator'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Writing entry to tarball workflow/random-color-generator len:47
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Extracting content to '/var/run/act'
[Test $GITHUB_OUTPUT/test_github_output]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/random-color-generator] user= workdir=
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Exec command '[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/random-color-generator]'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Working directory '/home/projects/dbt'
| /var/run/act/workflow/random-color-generator: line 2: $GITHUB_OUTPUT: ambiguous redirect
[Test $GITHUB_OUTPUT/test_github_output]   ❌  Failure - Main Set color
[Test $GITHUB_OUTPUT/test_github_output] exitcode '1': failure
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] setupEnv => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner 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 GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/check_constants GITHUB_REF_NAME:check_constants GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:company/dbt GITHUB_REPOSITORY_OWNER:company GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:8f75a516902c44aa453118d051af66f61a604cae GITHUB_TOKEN:*** GITHUB_WORKFLOW:Test $GITHUB_OUTPUT GITHUB_WORKSPACE:/home/projects/dbt IMAGE_OS:ubuntu22 ImageOS:ubuntu20 LSB_OS_VERSION:2204 LSB_RELEASE:22.04 PATH:/opt/hostedtoolcache/node/16.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root]
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] evaluating expression ''
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] expression '' evaluated to 'false'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Skipping step 'Get color' due to ''
[Test $GITHUB_OUTPUT/test_github_output] 🏁  Job failed
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae'
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants
[Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae
Error: Job 'test_github_output' failed

Additional information

In the non-verbose otuput can be seen clearly how the $GITHUB_OUTPUT is not working.

[Test $GITHUB_OUTPUT/test_github_output] 🚀  Start image=ghcr.io/catthehacker/ubuntu:act-22.04
[Test $GITHUB_OUTPUT/test_github_output]   🐳  docker pull image=ghcr.io/catthehacker/ubuntu:act-22.04 platform= username= forcePull=false
[Test $GITHUB_OUTPUT/test_github_output]   🐳  docker create image=ghcr.io/catthehacker/ubuntu:act-22.04 platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Test $GITHUB_OUTPUT/test_github_output]   🐳  docker run image=ghcr.io/catthehacker/ubuntu:act-22.04 platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[Test $GITHUB_OUTPUT/test_github_output] ⭐ Run Main Set color
[Test $GITHUB_OUTPUT/test_github_output]   🐳  docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/random-color-generator] user= workdir=
| /var/run/act/workflow/random-color-generator: line 2: $GITHUB_OUTPUT: ambiguous redirect
[Test $GITHUB_OUTPUT/test_github_output]   ❌  Failure - Main Set color
[Test $GITHUB_OUTPUT/test_github_output] exitcode '1': failure
[Test $GITHUB_OUTPUT/test_github_output] 🏁  Job failed
Error: Job 'test_github_output' failed
Originally created by @sdepablos on GitHub (Nov 15, 2022). Original GitHub issue: https://github.com/nektos/act/issues/1442 ### Bug report info ```plain text act version: 0.2.33 GOOS: linux GOARCH: amd64 NumCPU: 8 Docker host: DOCKER_HOST environment variable is unset/empty. Sockets found: /var/run/docker.sock Config files: /home/sergi/.actrc: -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest -P ubuntu-20.04=ghcr.io/catthehacker/ubuntu:act-20.04 -P ubuntu-18.04=ghcr.io/catthehacker/ubuntu:act-18.04 Build info: Go version: go1.19.2 Module path: github.com/nektos/act Main version: (devel) Main path: github.com/nektos/act Main checksum: Build settings: -compiler: gc -trimpath: true CGO_ENABLED: 1 GOARCH: amd64 GOOS: linux GOAMD64: v1 vcs: git vcs.revision: 1a32c043c11504dca5589ad3ea77344c2b40d152 vcs.time: 2022-11-07T13:56:47Z vcs.modified: true Docker Engine: Engine version: 20.10.21 Engine runtime: runc Cgroup version: 2 Cgroup driver: systemd Storage driver: overlay2 Registry URI: https://index.docker.io/v1/ OS: Manjaro Linux OS type: linux OS version: OS arch: x86_64 OS kernel: 5.15.76-1-MANJARO OS CPU: 8 OS memory: 31828 MB Security options: name=apparmor name=seccomp,profile=default name=cgroupns ``` ### Command used with act ```sh act push -v -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-22.04 -j test_github_output ``` ### Describe issue Whatever I try, when using $GITHUB_OUTPUT I get an error "$GITHUB_OUTPUT: ambiguous redirect". If I set it out in the `env`, I don't get an error, but still, it does not work. ### Link to GitHub repository _No response_ ### Workflow content ```yml name: Test GITHUB_OUTPUT on: [push] jobs: test_github_output: runs-on: ubuntu-latest steps: - name: Set color id: random-color-generator run: echo "SELECTED_COLOR=green" >> $GITHUB_OUTPUT - name: Get color run: echo "The selected color is ${{ steps.random-color-generator.outputs.SELECTED_COLOR }}" ``` ### Relevant log output ```sh DEBU[0000] Loading environment from /home/projects/dbt/.env DEBU[0000] Loading secrets from /home/projects/dbt/.secrets DEBU[0000] Loading workflows from '/home/projects/dbt/.github/workflows' DEBU[0000] Loading workflows recursively DEBU[0000] Found workflow 'test.yml' in '/home/projects/dbt/.github/workflows/test.yml' DEBU[0000] Reading workflow '/home/projects/dbt/.github/workflows/test.yml' DEBU[0000]< Using first passed in arguments event for filtering: push DEBU[0000] Preparing plan with a job: test_github_output DEBU[0000] Using first passed in arguments event: push DEBU[0000] Planning job: test_github_output DEBU[0000] Loading slug from git directory '/home/projects/dbt/.git' DEBU[0000] Loading revision from git directory '/home/projects/dbt/.git' DEBU[0000] Found revision: 8f75a516902c44aa453118d051af66f61a604cae DEBU[0000] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae' DEBU[0000] using github ref: refs/heads/check_constants DEBU[0000] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] evaluating expression 'success()' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] expression 'success()' evaluated to 'true' [Test $GITHUB_OUTPUT/test_github_output] 🚀 Start image=ghcr.io/catthehacker/ubuntu:act-22.04 [Test $GITHUB_OUTPUT/test_github_output] 🐳 docker pull image=ghcr.io/catthehacker/ubuntu:act-22.04 platform= username= forcePull=false [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] 🐳 docker pull ghcr.io/catthehacker/ubuntu:act-22.04 [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Image exists? true [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Removed container: 480244ae41f3a7d6d444ec93731b1322fdd9e839135f87f1cc2030ec120d127f [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] 🐳 docker volume rm act-Test-GITHUB-OUTPUT-test-github-output [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] 🐳 docker volume rm act-Test-GITHUB-OUTPUT-test-github-output-env [Test $GITHUB_OUTPUT/test_github_output] 🐳 docker create image=ghcr.io/catthehacker/ubuntu:act-22.04 platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Common container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:false AttachStderr:false ExposedPorts:map[] Tty:true OpenStdin:false StdinOnce:false Env:[RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:ghcr.io/catthehacker/ubuntu:act-22.04 Volumes:map[] WorkingDir:/home/projects/dbt Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]} [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Common container.HostConfig ==> &{Binds:[/var/run/docker.sock:/var/run/docker.sock] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:host PortBindings:map[] RestartPolicy:{Name: MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: ConsoleSize:[0 0] Isolation: Resources:{CPUShares:0 Memory:0 NanoCPUs:0 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:0 MemorySwappiness:<nil> OomKillDisable:<nil> PidsLimit:<nil> Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[{Type:volume Source:act-toolcache Target:/toolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil>} {Type:volume Source:act-Test-GITHUB-OUTPUT-test-github-output-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil>} {Type:volume Source:act-Test-GITHUB-OUTPUT-test-github-output Target:/home/projects/dbt ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>} [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Created container name=act-Test-GITHUB-OUTPUT-test-github-output id=8b71e938aa6ecd9f49a1e3e46a3bbd0a0d648c4bd5554e0d981dfa172dffeca9 from image ghcr.io/catthehacker/ubuntu:act-22.04 (platform: ) [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=X64 RUNNER_TEMP=/tmp] [Test $GITHUB_OUTPUT/test_github_output] 🐳 docker run image=ghcr.io/catthehacker/ubuntu:act-22.04 platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Starting container: 8b71e938aa6ecd9f49a1e3e46a3bbd0a0d648c4bd5554e0d981dfa172dffeca9 [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Started container: 8b71e938aa6ecd9f49a1e3e46a3bbd0a0d648c4bd5554e0d981dfa172dffeca9 [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Writing entry to tarball workflow/event.json len:2 [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Writing entry to tarball workflow/envs.txt len:0 [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Writing entry to tarball workflow/paths.txt len:0 [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Extracting content to '/var/run/act/' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] setupEnv => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:random-color-generator 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 GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/check_constants GITHUB_REF_NAME:check_constants GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:cdbt GITHUB_REPOSITORY_OWNER:company GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:8f75a516902c44aa453118d051af66f61a604cae GITHUB_TOKEN:*** GITHUB_WORKFLOW:Test $GITHUB_OUTPUT GITHUB_WORKSPACE:/home/projects/dbt IMAGE_OS:ubuntu22 ImageOS:ubuntu20 LSB_OS_VERSION:2204 LSB_RELEASE:22.04 PATH:/opt/hostedtoolcache/node/16.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root] [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] evaluating expression '' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] expression '' evaluated to 'true' [Test $GITHUB_OUTPUT/test_github_output] ⭐ Run Main Set color [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Wrote command echo "SELECTED_COLOR=green" >> $GITHUB_OUTPUT to 'workflow/random-color-generator' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Writing entry to tarball workflow/random-color-generator len:47 [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Extracting content to '/var/run/act' [Test $GITHUB_OUTPUT/test_github_output] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/random-color-generator] user= workdir= [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Exec command '[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/random-color-generator]' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Working directory '/home/projects/dbt' | /var/run/act/workflow/random-color-generator: line 2: $GITHUB_OUTPUT: ambiguous redirect [Test $GITHUB_OUTPUT/test_github_output] ❌ Failure - Main Set color [Test $GITHUB_OUTPUT/test_github_output] exitcode '1': failure [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] setupEnv => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner 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 GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/heads/check_constants GITHUB_REF_NAME:check_constants GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:company/dbt GITHUB_REPOSITORY_OWNER:company GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:8f75a516902c44aa453118d051af66f61a604cae GITHUB_TOKEN:*** GITHUB_WORKFLOW:Test $GITHUB_OUTPUT GITHUB_WORKSPACE:/home/projects/dbt IMAGE_OS:ubuntu22 ImageOS:ubuntu20 LSB_OS_VERSION:2204 LSB_RELEASE:22.04 PATH:/opt/hostedtoolcache/node/16.18.1/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: RUNNER_USER:root RUN_TOOL_CACHE:/opt/hostedtoolcache USER:root] [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] evaluating expression '' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] expression '' evaluated to 'false' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Skipping step 'Get color' due to '' [Test $GITHUB_OUTPUT/test_github_output] 🏁 Job failed [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading slug from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Loading revision from git directory '/home/projects/dbt/.git' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] HEAD points to '8f75a516902c44aa453118d051af66f61a604cae' [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] using github ref: refs/heads/check_constants [Test $GITHUB_OUTPUT/test_github_output] [DEBUG] Found revision: 8f75a516902c44aa453118d051af66f61a604cae Error: Job 'test_github_output' failed ``` ### Additional information In the non-verbose otuput can be seen clearly how the $GITHUB_OUTPUT is not working. ``` [Test $GITHUB_OUTPUT/test_github_output] 🚀 Start image=ghcr.io/catthehacker/ubuntu:act-22.04 [Test $GITHUB_OUTPUT/test_github_output] 🐳 docker pull image=ghcr.io/catthehacker/ubuntu:act-22.04 platform= username= forcePull=false [Test $GITHUB_OUTPUT/test_github_output] 🐳 docker create image=ghcr.io/catthehacker/ubuntu:act-22.04 platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [Test $GITHUB_OUTPUT/test_github_output] 🐳 docker run image=ghcr.io/catthehacker/ubuntu:act-22.04 platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [Test $GITHUB_OUTPUT/test_github_output] ⭐ Run Main Set color [Test $GITHUB_OUTPUT/test_github_output] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/random-color-generator] user= workdir= | /var/run/act/workflow/random-color-generator: line 2: $GITHUB_OUTPUT: ambiguous redirect [Test $GITHUB_OUTPUT/test_github_output] ❌ Failure - Main Set color [Test $GITHUB_OUTPUT/test_github_output] exitcode '1': failure [Test $GITHUB_OUTPUT/test_github_output] 🏁 Job failed Error: Job 'test_github_output' failed ```
kerem 2026-03-01 21:46:04 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

@ChristopherHX commented on GitHub (Nov 15, 2022):

This feature hasn't received enough reviews from maintainers yet, therefore it is unavailable and some scripts might not work.

Duplicate of #1386

<!-- gh-comment-id:1315508932 --> @ChristopherHX commented on GitHub (Nov 15, 2022): This feature hasn't received enough reviews from maintainers yet, therefore it is unavailable and some scripts might not work. Duplicate of #1386
Author
Owner

@sdepablos commented on GitHub (Nov 16, 2022):

Thanks @ChristopherHX, I thought it was already solved, but now I see that the PR linked on #1391 is still not closed. I'll keep watching it.

<!-- gh-comment-id:1317681224 --> @sdepablos commented on GitHub (Nov 16, 2022): Thanks @ChristopherHX, I thought it was already solved, but now I see that the PR linked on #1391 is still not closed. I'll keep watching it.
Author
Owner

@sneko commented on GitHub (Nov 21, 2022):

@sdepablos https://github.com/nektos/act/pull/1391#issuecomment-1321107660 helped me :)

<!-- gh-comment-id:1322522250 --> @sneko commented on GitHub (Nov 21, 2022): @sdepablos https://github.com/nektos/act/pull/1391#issuecomment-1321107660 helped me :)
Author
Owner

@michael-s-grant commented on GitHub (Jan 4, 2023):

I am still seeing this problem (in one and one only of in excess of thirty places where I have been replacing set-output). This discussion suggested I needed to be using a runner of at least v. 2.297.0, but mine is already 2.299.1. Placing quotes around $GITHUB_OUTPUT changed the error to " : no such file or directory"; the space before the semicolon indicates the environment variable was being interpreted as empty, even though debug proved it wasn't.

In the end, I worked around the problem by assigning the environment variable to second variable, and then appending using this and tee -a, but of course the problem needs to be solved properly, not just worked around.

<!-- gh-comment-id:1370854659 --> @michael-s-grant commented on GitHub (Jan 4, 2023): I am still seeing this problem (in one and one only of in excess of thirty places where I have been replacing `set-output`). [This discussion](https://github.com/community/community/discussions/36746) suggested I needed to be using a runner of at least v. 2.297.0, but mine is already 2.299.1. Placing quotes around `$GITHUB_OUTPUT` changed the error to " : no such file or directory"; the space before the semicolon indicates the environment variable was being interpreted as empty, even though debug proved it wasn't. In the end, I worked around the problem by assigning the environment variable to second variable, and then appending using this and `tee -a`, but of course the problem needs to be solved properly, not just worked around.
Author
Owner

@oms5 commented on GitHub (Jan 18, 2023):

@michael-s-grant I am having this issue as well running with 2.300.2

<!-- gh-comment-id:1387156771 --> @oms5 commented on GitHub (Jan 18, 2023): @michael-s-grant I am having this issue as well running with 2.300.2
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#750
No description provided.