-
Use case
It will also run this part even in github action
Idea
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hello @ChauCM You could utilize GitHub actions default environment variables, like
Take a look at GitHub Docs for Actions' Environment Variables and hopefully you get everything resolved. |
Beta Was this translation helpful? Give feedback.
-
I'm tenatively closing this thread due to no response. |
Beta Was this translation helpful? Give feedback.
Hello @ChauCM
You could utilize GitHub actions default environment variables, like
GITHUB_ACTIONS
, which is always set totrue
when GH actions is running the workflow.A simple solution here would be just to wrap a simple boolean if around the code you don't want to run on GH actions, like this:
Take a look at GitHub Docs for Actions' Environment Variables and hopefully you get everything resolved.