mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #1687] Steps Not Skipped with env.ACT #835
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#835
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 @andrewvaughan on GitHub (Mar 19, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1687
Bug report info
Command used with act
Describe issue
I'm attempting to skip a step that is not required and fails when running locally.
It seems that the documented skip method for using the
env.ACTvariable is not working, possibly due to being in-tandem with another conditional. The step is the following (from mega-linter):Regardless, this method always runs. I've been able to confirm that
env.ACTis equal totrueon the local platform.Link to GitHub repository
No response
Workflow content
Relevant log output
Additional information
It might be possible that this is a GitHub runner issue? I'm not sure how act is configured below the hood:
https://github.com/actions/runner/issues/1173
That said, please don't write it off as such! This is just for reference. Thank you so much!
@andrewvaughan commented on GitHub (Mar 19, 2023):
This seems to be the most pertinent part of the log, if helpful:
Solution?
This seemed to work, but I have not had a chance to test it on GitHub runners yet. Maybe it requires an update to the documentation?
Conditional:
Result:
@ChristopherHX commented on GitHub (Mar 19, 2023):
I'm aware of this problem, but there are multiple mutable exclusive solutions.
${{ ... }}surrounded by any chars${{ ... }}surrounded by any chars to work, but then something will work in act and misbehave after push@github-actions[bot] commented on GitHub (Sep 16, 2023):
Issue is stale and will be closed in 14 days unless there is new activity
@jamincollins commented on GitHub (Apr 3, 2024):
@ChristopherHX could you please provide the examples with multiple conditions? I've checked both of the above links and neither of them seem to cover cases with multiple conditions.