mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #953] Each run command in the workflow create a new file in the workdir ? #564
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#564
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lflorent on GitHub (Jan 6, 2022).
Original GitHub issue: https://github.com/nektos/act/issues/953
Hi,
When I launch a job with
act, the process creates aworkflowfolder in the repo root folder (workdir).For each run bash command (no matter the command) a file is created with this pattern
./workflow/<step_number - 1>(e.g../workflow/3for step 4).This files are then used by
actto launch a docker command who display aactlog output like :For example, with :
This will generate ./workflow/3 file :
I'm wondering if this mechanism (create new folder/files in local repo folder) is normal or maybe I misconfigured or misused something ?
Is it only an
actmechanism ? GitHub Actions does the same ?I run some bash command (via
run:configs) before sync the repo root folder with a remote host for deploy and I would have liked to know if I will always have to exclude this autogeneratedworkflowfolder.Thanks in advance for your precious help.
System information
@catthehacker commented on GitHub (Jan 6, 2022):
Yes
No, it has been fixed in
github.com/nektos/act@adabf2a202(it will be part of next version release)
@lflorent commented on GitHub (Jan 6, 2022):
Hi @catthehacker,
Thanks for your quick answer and your fix.
I looked the existing issues but didn't find similar issue ...
I'll test again with the next release.
@catthehacker commented on GitHub (Jan 6, 2022):
I think no one reported it before and I noticed it quite late
If you don't want to wait for next release, there are artefacts for each PR (latest merged PR: https://github.com/nektos/act/actions/runs/1633555344)
@lflorent commented on GitHub (Jan 7, 2022):
I've tested the arm64 artefact release of your provided PR.
The good news is that there is no more workflow folder that appears in the workdir.
But for me there is a regression with
if: ${{ !env.ACT }}expressions.The env ACT variable still here in the step context :
But all steps run no matter
if: ${{ !env.ACT }}.@catthehacker commented on GitHub (Jan 7, 2022):
This is https://github.com/nektos/act/issues/940
@github-actions[bot] commented on GitHub (Feb 7, 2022):
Issue is stale and will be closed in 14 days unless there is new activity
@catthehacker commented on GitHub (Feb 21, 2022):
Fixed by https://github.com/nektos/act/pull/930