From d0d30f53585cf16b2e01811a5a753fd47968654a Mon Sep 17 00:00:00 2001 From: Sid Dange Date: Mon, 1 May 2023 23:33:06 -0400 Subject: [PATCH] Added support double-globbing in the xml paths --- README.md | 4 +++- run.sh | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c5d2789..40a7c2f 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,9 @@ Easily connect your GitHub Actions CI workflows to [BuildPulse][buildpulse.io] t with: account: repository: - path: + path: | + reports/junit.xml # + 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 }} ``` diff --git a/run.sh b/run.sh index 842b059..7aab074 100755 --- a/run.sh +++ b/run.sh @@ -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}"