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 5ca1bcf  Add suport for maven errors to production version, undo local 
testing changes to stg
5ca1bcf is described below

commit 5ca1bcfc562765b6842abdd0dbd279be58895e97
Author: Alastair McFarlane <[email protected]>
AuthorDate: Wed Jan 28 11:48:41 2026 +0000

    Add suport for maven errors to production version, undo local testing 
changes to stg
---
 .github/workflows/distribute-maven-stg.yml | 16 ++++++++--------
 .github/workflows/distribute-maven.yml     |  7 +++++--
 2 files changed, 13 insertions(+), 10 deletions(-)

diff --git a/.github/workflows/distribute-maven-stg.yml 
b/.github/workflows/distribute-maven-stg.yml
index a03221a..292abc6 100644
--- a/.github/workflows/distribute-maven-stg.yml
+++ b/.github/workflows/distribute-maven-stg.yml
@@ -163,10 +163,10 @@ jobs:
         shell: bash
         run: |
           set -euxo pipefail
-          # case "${ATR_HOST}" in
-          #   *.apache.org) ;;
-          #   *) echo "atr-host must match *.apache.org"; exit 1;;
-          # esac
+          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 key "$SSH_PUBLIC_KEY" \
@@ -175,7 +175,7 @@ jobs:
                 --arg project_name "$INPUTS_PROJECT" \
                 --arg version "$INPUTS_VERSION" \
                 '{publisher:$publisher, jwt:$jwt, ssh_key:$key, asf_uid:$uid, 
project_name:$project_name, phase:$phase, version:$version}' |
-            curl -sS --fail-with-body -k -X POST -H 'Content-Type: 
application/json' -d @- \
+            curl -sS --fail-with-body -X POST -H 'Content-Type: 
application/json' -d @- \
               "https://${ATR_HOST}/api/distribute/ssh/register";
         env:
           JWT: ${{ steps.create-github-jwt.outputs.jwt }}
@@ -195,7 +195,7 @@ jobs:
                 --arg run_id $RUN_ID \
                 --arg project_name "$INPUTS_PROJECT" \
                 '{publisher:$publisher, jwt:$jwt, workflow:$workflow, 
run_id:$run_id, project_name:$project_name, status:"in_progress", 
message:"Compiling distribution"}' |
-            curl -sS --fail-with-body -k -X POST -H 'Content-Type: 
application/json' -d @- \
+            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 }}
@@ -353,10 +353,10 @@ 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 err "$([ -f .err ] && [ -s .err ] && echo "Build failed: 
$(cat .err)" || echo "Github workflow failed")" \
                 --arg status "failed" \
                 '{publisher:$publisher, jwt:$jwt, workflow:$workflow, 
run_id:$run_id, project_name:$project_name, status:$status, message:$err}' |
-            curl -sS --fail-with-body -k -X POST -H 'Content-Type: 
application/json' -d @- \
+            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 }}
diff --git a/.github/workflows/distribute-maven.yml 
b/.github/workflows/distribute-maven.yml
index 57d4ad1..143fe47 100644
--- a/.github/workflows/distribute-maven.yml
+++ b/.github/workflows/distribute-maven.yml
@@ -61,7 +61,9 @@ jobs:
       CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}
       TAG_NAME: "${{ inputs.distribution-owner-namespace }}-${{ 
inputs.distribution-package }}-${{ inputs.distribution-version }}"
     steps:
-
+      - name: Sleep for 5 seconds
+        run: sleep 5s
+        shell: bash
       - name: Create settings.xml
         run: |
             mkdir -p ~/.m2
@@ -342,8 +344,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 "Github workflow failed")" \
                 --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]

Reply via email to