Glob markdown files on github action only returns docs
folder
#25619
-
I have multiple folders in my project containing markdown files. I want to run Here’s a snippet of an actions file:
Again, the problem is that the Troubleshooting:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
So, interestingly enough, if I replace
with
it works. Is this a bug or documented limitation in GitHub actions? |
Beta Was this translation helpful? Give feedback.
-
It seems the bash in github actions has different defaults like your system,
See here for more information:
Each step gets a fresh shell, so changes to shell settings are lost after the step. You need to set the globstar option in the step where you want to use the ** glob. Try: - run: | shopt -s globstar ls tests/**/*.py |
Beta Was this translation helpful? Give feedback.
-
that works. thanks. I also found that the thanks again! |
Beta Was this translation helpful? Give feedback.
It seems the bash in github actions has different defaults like your system,
You might need to add
shopt -s globstar
to your script beforels ./**/*.md
to enable the globstar.E.g.
See here for more information: