This is an automated email from the ASF dual-hosted git repository.
arm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-actions.git
The following commit(s) were added to refs/heads/main by this push:
new 99cb7f5 Add report and record
99cb7f5 is described below
commit 99cb7f5f7b1ab41676a975ed735a162a1c69346e
Author: Alastair McFarlane <[email protected]>
AuthorDate: Tue Jan 13 10:32:14 2026 +0000
Add report and record
---
.github/workflows/distribute-maven.yml | 59 ++++++++++++++++++++++++++++++++++
1 file changed, 59 insertions(+)
diff --git a/.github/workflows/distribute-maven.yml
b/.github/workflows/distribute-maven.yml
index d15093a..4d0cd00 100644
--- a/.github/workflows/distribute-maven.yml
+++ b/.github/workflows/distribute-maven.yml
@@ -115,3 +115,62 @@ jobs:
INPUTS_STAGING: ${{ inputs.staging }}
# INPUTS_DETAILS: ${{ inputs.details }}
SSH_PRIVATE_KEY_PATH: ${{
steps.generate-ssh-key.outputs.ssh_private_key_path }}
+
+ - name: Report status back to ATR
+ shell: bash
+ if: always()
+ run: |
+ set -euxo pipefail
+ case "${ATR_HOST}" in
+ *.apache.org) ;;
+ *) echo "atr-host must match *.apache.org"; exit 1;;
+ esac
+ jq -n --arg publisher github \
+ --arg jwt "$JWT" \
+ --arg workflow github \
+ --arg run_id "$RUN_ID" \
+ --arg project_name "$INPUTS_PROJECT" \
+ --arg status "$STATUS" \
+ '{publisher:$publisher, jwt:$jwt, workflow:$workflow,
run_id:$run_id, project_name:$project_name, status:$status, message:""}' |
+ curl -sS --fail-with-body -X POST -H 'Content-Type:
application/json' -d @- \
+ "https://${ATR_HOST}/api/distribute/task/status"
+ env:
+ JWT: ${{ steps.create-github-jwt.outputs.jwt }}
+ RUN_ID: ${{ job.status }}
+ STATUS: ${{ job.check_run_id }}
+ INPUTS_PROJECT: ${{ inputs.project }}
+
+ - name: Record distribution on ATR
+ shell: bash
+ run: |
+ set -euxo pipefail
+ case "${ATR_HOST}" in
+ *.apache.org) ;;
+ *) echo "atr-host must match *.apache.org"; exit 1;;
+ esac
+ STAGING_JSON=false
+ [ "${INPUTS_STAGING}" = "true" ] && STAGING_JSON=true
+ DETAILS_JSON=false
+ [ "${INPUTS_DETAILS}" = "true" ] && DETAILS_JSON=true
+ jq -n --arg publisher github \
+ --arg jwt "$JWT" \
+ --arg version "$INPUTS_VERSION" \
+ --arg platform "maven" \
+ --arg distribution_owner_namespace
"$INPUTS_DISTRIBUTION_OWNER_NAMESPACE" \
+ --arg distribution_package "$INPUTS_DISTRIBUTION_PACKAGE" \
+ --arg distribution_version "$INPUTS_DISTRIBUTION_VERSION" \
+ --argjson staging "$STAGING_JSON" \
+ --argjson details "$DETAILS_JSON" \
+ '{publisher:$publisher, jwt:$jwt, version:$version,
platform:$platform, distribution_owner_namespace:$distribution_owner_namespace,
distribution_package:$distribution_package,
distribution_version:$distribution_version, staging:$staging,
details:$details}' |
+ curl -sS --fail-with-body -X POST -H 'Content-Type:
application/json' -d @- \
+ "https://${ATR_HOST}/api/publisher/distribution/record"
+ env:
+ INPUTS_VERSION: ${{ inputs.version }}
+ INPUTS_DISTRIBUTION_OWNER_NAMESPACE: ${{
inputs.distribution-owner-namespace }}
+ INPUTS_DISTRIBUTION_PACKAGE: ${{ inputs.distribution-package }}
+ INPUTS_DISTRIBUTION_VERSION: ${{ inputs.distribution-version }}
+ INPUTS_STAGING: ${{ inputs.staging }}
+ JWT: ${{ steps.create-github-jwt.outputs.jwt }}
+
+
+
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]