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 343ec89 Add some extra statuses
343ec89 is described below
commit 343ec89cd8e028b5db0c08216872f2870536b597
Author: Alastair McFarlane <[email protected]>
AuthorDate: Wed Jan 14 11:15:45 2026 +0000
Add some extra statuses
---
.github/workflows/distribute-maven.yml | 53 ++++++++++++++++++++++++++++++++--
1 file changed, 51 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/distribute-maven.yml
b/.github/workflows/distribute-maven.yml
index 4689cd8..2e05a9c 100644
--- a/.github/workflows/distribute-maven.yml
+++ b/.github/workflows/distribute-maven.yml
@@ -143,10 +143,10 @@ jobs:
jq -n --arg publisher github \
--arg jwt "$JWT" \
--arg workflow github \
- --arg run_id "$RUN_ID" \
+ --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:""}' |
+ '{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:
@@ -186,3 +186,52 @@ jobs:
INPUTS_DISTRIBUTION_VERSION: ${{ inputs.distribution-version }}
INPUTS_STAGING: ${{ inputs.staging }}
JWT: ${{ steps.create-github-jwt.outputs.jwt }}
+
+ - name: Report status back to ATR
+ shell: bash
+ if: failure()
+ 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:"Failed"}' |
+ 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: Report status back to ATR
+ shell: bash
+ if: success()
+ 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 "success" \
+ '{publisher:$publisher, jwt:$jwt, workflow:$workflow,
run_id:$run_id, project_name:$project_name, status:'$status'
message:"Completed"}' |
+ 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 }}
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]