diff --git a/publish-pact-files/publishPactfiles.sh b/publish-pact-files/publishPactfiles.sh index e3b281e..d2e9e8d 100755 --- a/publish-pact-files/publishPactfiles.sh +++ b/publish-pact-files/publishPactfiles.sh @@ -13,6 +13,7 @@ if [ ${#MISSING[@]} -gt 0 ]; then fi branch=$(git rev-parse --abbrev-ref HEAD) +build_url="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" echo """ PACT_BROKER_BASE_URL: $PACT_BROKER_BASE_URL @@ -20,6 +21,7 @@ PACT_BROKER_TOKEN: $PACT_BROKER_TOKEN version: $version pactfiles: $pactfiles branch: $branch +build_url: $build_url """ docker run --rm \ @@ -31,4 +33,5 @@ docker run --rm \ publish \ $pactfiles \ --consumer-app-version $version \ - --branch $branch + --branch $branch \ + --build-url $build_url diff --git a/publish-provider-contract/publishOAS.sh b/publish-provider-contract/publishOAS.sh index 2689acc..208dd5b 100755 --- a/publish-provider-contract/publishOAS.sh +++ b/publish-provider-contract/publishOAS.sh @@ -18,6 +18,7 @@ EXIT_CODE=${EXIT_CODE:-0} REPORT_FILE_CONTENT_TYPE=${REPORT_FILE_CONTENT_TYPE:-'text/plain'} VERIFIER_TOOL=${VERIFIER_TOOL:-'github-actions'} BRANCH=${GITHUB_REF#refs/heads/} +BUILD_URL="${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}" echo """ URL: $URL @@ -26,6 +27,7 @@ oas_file: $oas_file results_file: $results_file EXIT_CODE: $EXIT_CODE BRANCH: $BRANCH +BUILD_URL: $BUILD_URL """ docker run --rm \ @@ -43,4 +45,5 @@ docker run --rm \ --verification-exit-code=$EXIT_CODE \ --verification-results $results_file \ --verification-results-content-type $REPORT_FILE_CONTENT_TYPE \ - --verifier $VERIFIER_TOOL + --verifier $VERIFIER_TOOL \ + --build-url $BUILD_URL