You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2022/08/24 09:52:49 UTC

[camel-quarkus] branch main updated: Make nightly branch sync workflows report failures if the build was cancelled

This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/main by this push:
     new fd28c9f0a3 Make nightly branch sync workflows report failures if the build was cancelled
fd28c9f0a3 is described below

commit fd28c9f0a3024b07400f29f0e6ba1e11c8d8b51d
Author: James Netherton <ja...@gmail.com>
AuthorDate: Wed Aug 24 07:29:27 2022 +0100

    Make nightly branch sync workflows report failures if the build was cancelled
---
 .github/workflows/camel-master-cron.yaml   | 4 ++--
 .github/workflows/quarkus-master-cron.yaml | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/camel-master-cron.yaml b/.github/workflows/camel-master-cron.yaml
index eeb26b8871..98834b42ea 100644
--- a/.github/workflows/camel-master-cron.yaml
+++ b/.github/workflows/camel-master-cron.yaml
@@ -88,7 +88,7 @@ jobs:
           CATEGORIES=$(yq -M -N -I 0 -o=json e 'keys' tooling/scripts/test-categories.yaml | tr '"' "'")
           echo "::set-output name=matrix::{'category': ${CATEGORIES}}"
       - name: Report Build Failure
-        if: failure()
+        if: failure() || cancelled()
         run: |
           # Abort rebase in case something went wrong as we may have broken pom.xml files
           if [[ -e ".git/rebase" || -e ".git/rebase-apply" || -e ".git/rebase-merge" ]]; then
@@ -166,7 +166,7 @@ jobs:
               -pl "${NATIVE_MODULES[*]}"
           fi
       - name: Report Build Failure
-        if: failure()
+        if: failure() || cancelled()
         run: |
           ./mvnw ${MAVEN_ARGS} verify -N -Pbuild-notification -Dstatus=${{ job.status }} -DissueId=${{ env.ISSUE_ID }} -Dtoken=${{ secrets.GITHUB_TOKEN }} -DbuildId=$(cat ~/build-data/build-id.txt) -Drepo=${GITHUB_REPOSITORY} -Dbranch=camel-main -Dbranch-commit=$(cat ~/build-data/main-sha.txt)
 
diff --git a/.github/workflows/quarkus-master-cron.yaml b/.github/workflows/quarkus-master-cron.yaml
index 3773fb06ae..9c1f6c69f3 100644
--- a/.github/workflows/quarkus-master-cron.yaml
+++ b/.github/workflows/quarkus-master-cron.yaml
@@ -97,7 +97,7 @@ jobs:
           CATEGORIES=$(yq -M -N -I 0 -o=json e 'keys' tooling/scripts/test-categories.yaml | tr '"' "'")
           echo "::set-output name=matrix::{'category': ${CATEGORIES}}"
       - name: Report Build Failure
-        if: failure()
+        if: failure() || cancelled()
         run: |
           # Abort rebase in case something went wrong as we may have broken pom.xml files
           if [[ -e ".git/rebase" || -e ".git/rebase-apply" || -e ".git/rebase-merge" ]]; then
@@ -175,7 +175,7 @@ jobs:
               -pl "${NATIVE_MODULES[*]}"
           fi
       - name: Report Build Failure
-        if: failure()
+        if: failure() || cancelled()
         run: |
           ./mvnw ${MAVEN_ARGS} verify -N -Pbuild-notification -Dstatus=${{ job.status }} -DissueId=${{ env.ISSUE_ID }} -Dtoken=${{ secrets.GITHUB_TOKEN }} -DbuildId=$(cat ~/build-data/build-id.txt) -Drepo=${GITHUB_REPOSITORY} -Dbranch=quarkus-main -Dbranch-commit=$(cat ~/build-data/main-sha.txt)