Closed 0x5c closed 2 years ago
Issue is stale and will be closed in 14 days unless there is new activity
PR is stale and will be closed in 14 days unless there is new activity
Still affected by the bug
Issue is stale and will be closed in 14 days unless there is new activity
Issue is stale and will be closed in 14 days unless there is new activity
The bug is still affecting me
Issue is stale and will be closed in 14 days unless there is new activity
System information
20.10.9
act
:-P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-latest
act
version:0.2.26
Expected behaviour
PATH
provided in theenv
key of a job is not overwritten with an unrelated value.Actual behaviour
The PATH is hardcoded to
Workflow and/or repository
https://github.com/void-linux/void-packages/blob/master/.github/workflows/build.yaml
Steps to reproduce
act -e [json file below] -j xlint pull_request
(this targets thexlint
job as it is the only fast one, but both jobs in the workflow are affected)- run: echo "${PATH}"
as the second step to thexlint
job.act
outputLog
```none $ act -v -e local-DNC/ci_pr.json -j xlint pull_request DEBU[0000] Loading environment from /code/void/packages/.env DEBU[0000] Loading secrets from /code/void/packages/.secrets DEBU[0000] Loading workflows from '/code/void/packages/.github/workflows' DEBU[0000] Loading workflows recursively DEBU[0000] Found workflow 'build.yaml' in '/code/void/packages/.github/workflows/build.yaml' DEBU[0000] Found workflow 'cycles.yml' in '/code/void/packages/.github/workflows/cycles.yml' DEBU[0000] Found workflow 'stale.yml' in '/code/void/packages/.github/workflows/stale.yml' DEBU[0000] Reading workflow '/code/void/packages/.github/workflows/build.yaml' DEBU[0000] Reading workflow '/code/void/packages/.github/workflows/cycles.yml' DEBU[0000] Reading workflow '/code/void/packages/.github/workflows/stale.yml' DEBU[0000] Planning job: xlint DEBU[0000] Reading event.json from /code/void/packages/local-DNC/ci_pr.json DEBU[0000] Loading slug from git directory '/code/void/packages/.git' DEBU[0000] Found revision: fd789400824a488facdcb51bc26d283c6a5787dc DEBU[0000] evaluating expression 'success()' DEBU[0000] expression 'success()' evaluated to 'true' [Check build/Lint templates] š Start image=ghcr.io/catthehacker/ubuntu:act-latest DEBU[0000] Loading slug from git directory '/code/void/packages/.git' DEBU[0000] Found revision: fd789400824a488facdcb51bc26d283c6a5787dc [Check build/Lint templates] š³ docker pull image=ghcr.io/catthehacker/ubuntu:act-latest platform= username= forcePull=false [Check build/Lint templates] š³ docker pull ghcr.io/catthehacker/ubuntu:act-latest DEBU[0000] Image exists? true [Check build/Lint templates] Removed container: b4ad83bcf4d64671e8398fc8447995137928009235adc461287547bb2c8b3b15 [Check build/Lint templates] š³ docker volume rm act-Check-build-Lint-templates [Check build/Lint templates] š³ docker create image=ghcr.io/catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [Check build/Lint templates] Created container name=act-Check-build-Lint-templates id=2d1a09eb344fe1ed84ac1cd4da3c1ac6cc17adc412ebecf622f3c9c988438dba from image ghcr.io/catthehacker/ubuntu:act-latest (platform: ) [Check build/Lint templates] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp] [Check build/Lint templates] š³ docker run image=ghcr.io/catthehacker/ubuntu:act-latest platform= entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [Check build/Lint templates] Starting container: 2d1a09eb344fe1ed84ac1cd4da3c1ac6cc17adc412ebecf622f3c9c988438dba [Check build/Lint templates] Started container: 2d1a09eb344fe1ed84ac1cd4da3c1ac6cc17adc412ebecf622f3c9c988438dba [Check build/Lint templates] š³ docker exec cmd=[mkdir -m 0777 -p /var/run/act] user=root workdir= [Check build/Lint templates] Exec command '[mkdir -m 0777 -p /var/run/act]' [Check build/Lint templates] Working directory '/code/void/packages' [Check build/Lint templates] š³ docker cp src=/code/void/packages/. dst=/code/void/packages [Check build/Lint templates] š³ docker exec cmd=[mkdir -p /code/void/packages] user= workdir= [Check build/Lint templates] Exec command '[mkdir -p /code/void/packages]' [Check build/Lint templates] Working directory '/code/void/packages' DEBU[0002] Writing tarball /tmp/act3929344744 from /code/void/packages/. DEBU[0002] Stripping prefix:/code/void/packages/ src:/code/void/packages/. [Check build/Lint templates] Extracting content from '/tmp/act3929344744' to '/code/void/packages' DEBU[0005] Writing entry to tarball workflow/event.json len:143 DEBU[0005] Writing entry to tarball workflow/envs.txt len:0 DEBU[0005] Writing entry to tarball workflow/paths.txt len:0 [Check build/Lint templates] Extracting content to '/var/run/act/' DEBU[0005] Loading slug from git directory '/code/void/packages/.git' DEBU[0005] Found revision: fd789400824a488facdcb51bc26d283c6a5787dc DEBU[0005] evaluating expression '' DEBU[0005] expression '' evaluated to 'true' DEBU[0005] Loading slug from git directory '/code/void/packages/.git' DEBU[0005] Found revision: fd789400824a488facdcb51bc26d283c6a5787dc DEBU[0005] Loading slug from git directory '/code/void/packages/.git' DEBU[0005] Found revision: fd789400824a488facdcb51bc26d283c6a5787dc [Check build/Lint templates] setupEnv => map[ACT:true AGENT_TOOLSDIRECTORY:/opt/hostedtoolcache CI:true DEBIAN_FRONTEND:noninteractive DEPLOYMENT_BASEPATH:/opt/runner GITHUB_ACTION:0 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:master GITHUB_ENV:/var/run/act/workflow/envs.txt GITHUB_EVENT_NAME:pull_request GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF:HEAD GITHUB_JOB:Lint templates GITHUB_PATH:/var/run/act/workflow/paths.txt GITHUB_REF:refs/pull/%!s(