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 0626b4d Handle validation errors in failure step
0626b4d is described below
commit 0626b4d01747317345c046881dc0ab0f87974317
Author: Alastair McFarlane <[email protected]>
AuthorDate: Mon Jan 19 16:35:40 2026 +0000
Handle validation errors in failure step
---
.github/workflows/distribute-maven-stg.yml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/distribute-maven-stg.yml
b/.github/workflows/distribute-maven-stg.yml
index 0d027f2..69b16cf 100644
--- a/.github/workflows/distribute-maven-stg.yml
+++ b/.github/workflows/distribute-maven-stg.yml
@@ -263,7 +263,7 @@ jobs:
- name: Get store ID and publish
run: |
echo "Publishing store: $NJORD_STORE-00001"
- mvn njord:validate -Dnjord.store=$NJORD_STORE-00001
+ mvn njord:validate -Dnjord.store=njord-deployer-00001
-Dnjord.publisher=sonatype-cp -Dnjord.details=true -q | sed -n '/Central
Requirements/,/ArtifactStore.*failed validation/{/ArtifactStore.*failed
validation/!s/^\[ERROR\] *//p}' | tee .err
mvn njord:publish -Dnjord.store=$NJORD_STORE-00001
mvn njord:drop -Dnjord.store=$NJORD_STORE-00001
env:
@@ -327,8 +327,9 @@ jobs:
--arg workflow "$WORKFLOW" \
--arg run_id $RUN_ID \
--arg project_name "$INPUTS_PROJECT" \
+ --arg err "$([ -f .err ] && [ -s .err ] && echo "Build failed;
$(cat .err)" || echo "")" \
--arg status "failed" \
- '{publisher:$publisher, jwt:$jwt, workflow:$workflow,
run_id:$run_id, project_name:$project_name, status:$status, message:"GitHub
workflow failed"}' |
+ '{publisher:$publisher, jwt:$jwt, workflow:$workflow,
run_id:$run_id, project_name:$project_name, status:$status, message:$err}' |
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]