Skip to content

Commit

Permalink
Added support double-globbing in the xml paths
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantdange committed May 4, 2023
1 parent c9db3ee commit d0d30f5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ Easily connect your GitHub Actions CI workflows to [BuildPulse][buildpulse.io] t
with:
account: <buildpulse-account-id>
repository: <buildpulse-repository-id>
path: <path-to-xml-reports>
path: |
reports/junit.xml # <path-to-xml-reports>
reports2/**/junit.xml # support double globbing (if your github-hosted runner OS uses bash 4+)
key: ${{ secrets.BUILDPULSE_ACCESS_KEY_ID }}
secret: ${{ secrets.BUILDPULSE_SECRET_ACCESS_KEY }}
```
Expand Down
8 changes: 8 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

set -e

# Enable double globbing if supported by the shell on the base github runner
if shopt -s globstar; then
echo "This bash shell version supports double globbing: '${BASH_VERSION}'."

else
echo "This bash shell version does not support double globbing: '${BASH_VERSION}'. Please upgrade to bash 4+."
fi

if ! echo $INPUT_ACCOUNT | egrep -q '^[0-9]+$'
then
echo "🐛 The given value is not a valid account ID: ${INPUT_ACCOUNT}"
Expand Down

0 comments on commit d0d30f5

Please sign in to comment.