diff --git a/.circleci/config.yml b/.circleci/config.yml index 023b54b0d9..c081f5c9c4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -464,7 +464,9 @@ workflows: - build-package filters: tags: - only: /.*/ + only: /^v.*/ + branches: + ignore: /.*/ - create-report: requires: - validate-content @@ -474,6 +476,8 @@ workflows: filters: tags: only: /^v.*/ + branches: + ignore: /.*/ - update-sources-github: # update package and docs in github if is a tag requires: diff --git a/bin/appinspect.sh b/bin/appinspect.sh index 00b0f22ce4..7ac93bb9f7 100755 --- a/bin/appinspect.sh +++ b/bin/appinspect.sh @@ -25,7 +25,15 @@ PACKAGE_PATH="/home/circleci/"$PACKAGE_NAME cd $APP_PATH -mkdir report + +# check if report exists +if [ -d report ] +then + echo "report/ Directory exists" +else + mkdir report +fi + # get a JWT token AUTH_TOKEN=$(echo -n "$USERNAME:$PASSWORD" | base64) APPINSPECT_TOKEN=$(curl -s --location --request GET 'https://api.splunk.com/2.0/rest/login/splunk' --header "Authorization: Basic $AUTH_TOKEN" | jq -r '.data | .token')