-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
How to determine whether running workflows with act? #422
Comments
I think this is something that can have an env var for act specifically. e.g. in the runner context code I can add a line for Then in the job you can specify Would this provide you the functionality you are looking for? |
@austinsasko yes, that totally solves my problem.. |
This is actually solved in #417 which was merged to master yesterday. |
@torbjornvatn when can we expect a release that has #417 in it? |
Issue is stale and will be closed in 14 days unless there is new activity |
Hi,
I can check if a workflow running in Github Actions by
${{ env.GITHUB_ACTIONS=='true'}}
, but act also define envGITHUB_ACTIONS: true
, so how to determine whether running workflows with act?There are some steps that I only want to run with Github, not locally.
Example:
How to define
if
condition?The text was updated successfully, but these errors were encountered: