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 449962e Add extra reporting line
449962e is described below
commit 449962e146421b817fb0b298ac9e2092157059a0
Author: Alastair McFarlane <[email protected]>
AuthorDate: Wed Jan 14 13:23:07 2026 +0000
Add extra reporting line
---
.github/workflows/distribute-maven.yml | 26 +++++++++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/distribute-maven.yml
b/.github/workflows/distribute-maven.yml
index c7baba8..c4e74d1 100644
--- a/.github/workflows/distribute-maven.yml
+++ b/.github/workflows/distribute-maven.yml
@@ -106,6 +106,30 @@ jobs:
INPUTS_PHASE: ${{ inputs.phase }}
INPUTS_ASF_UID: ${{ inputs.asf-uid }}
+ - 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 "$WORKFLOW" \
+ --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:"Compiling
distribution"}' |
+ 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: ${{ github.run_id }}
+ STATUS: ${{ job.status }}
+ INPUTS_PROJECT: ${{ inputs.project }}
+
- name: Download from ATR using rsync
shell: bash
run: |
@@ -147,7 +171,7 @@ jobs:
--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:"Compiling
distribution"}' |
+ '{publisher:$publisher, jwt:$jwt, workflow:$workflow,
run_id:$run_id, project_name:$project_name, status:$status, message:"Recording
distribution"}' |
curl -sS --fail-with-body -X POST -H 'Content-Type:
application/json' -d @- \
"https://${ATR_HOST}/api/distribute/task/status"
env:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]