-
Notifications
You must be signed in to change notification settings - Fork 251
feat: add Built-in parameters: DIRNAME
, #1628, #1633
#1653
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
base: develop
Are you sure you want to change the base?
Conversation
cfc9c61
to
014de49
Compare
You should use working directory of the custom action's process, which is always the path of repository |
we just want the |
I know the path is fixed, but I only need the name of the folder. And this folder is fixed just like the path, which is very useful for custom processing. I need to get the name of the folder instead of the name of the path |
DIR_NAME=$(basename `pwd`) |
It's a shell expr. You should use |
That is to say, even for further customized requirements, even if they are simple, I have to use the shell. Moreover, under different operating systems, such as Linux or Windows, I also have to write specific and different commands for the operating systems to achieve the same function. |
014de49
to
018f050
Compare
No description provided.