From 4e48e54a8e4883fa9d093c7fd897b9276efbb34e Mon Sep 17 00:00:00 2001 From: Cassandra Coyle Date: Thu, 2 Jul 2026 11:47:01 -0500 Subject: [PATCH 1/2] auto open issue on ci failure during release Signed-off-by: Cassandra Coyle --- .github/workflows/build.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3236b440e..e6160c04b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -268,3 +268,19 @@ jobs: gpg --batch --import private-key.gpg ./mvnw -V -B -Dgpg.skip=false -DskipTests -s settings.xml deploy curl -X POST https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/io.dapr + + # Opens (or comments on) a tracking issue when a tagged release fails + # anywhere in the build/test/publish chain. + notify-on-failure: + needs: [build, test, build-durabletask, publish] + if: failure() && startsWith(github.ref, 'refs/tags/v') + permissions: + issues: write + actions: read + uses: dapr/.github/.github/workflows/open-issue-on-failure.yml@main + with: + title: "Release publish failed: ${{ github.workflow }} (${{ github.ref_name }})" + labels: "release,ci/publish-failure" + mention: "@dapr/maintainers-java-sdk @dapr/approvers-java-sdk" + secrets: + dapr_bot_token: ${{ secrets.DAPR_BOT_TOKEN }} From 37d70f702873830541b4a19184330d938881a060 Mon Sep 17 00:00:00 2001 From: Cassandra Coyle Date: Mon, 6 Jul 2026 16:32:13 -0500 Subject: [PATCH 2/2] only open issue on publish Signed-off-by: Cassandra Coyle --- .github/workflows/build.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e6160c04b..ec3a7a940 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -269,18 +269,17 @@ jobs: ./mvnw -V -B -Dgpg.skip=false -DskipTests -s settings.xml deploy curl -X POST https://ossrh-staging-api.central.sonatype.com/manual/upload/defaultRepository/io.dapr - # Opens (or comments on) a tracking issue when a tagged release fails - # anywhere in the build/test/publish chain. + # Opens (or comments on) a tracking issue only when the publish job (Maven + # Central deploy) fails. Build/test failures skip publish, so failure() stays + # false and CI flakes don't open issues. notify-on-failure: - needs: [build, test, build-durabletask, publish] + needs: [publish] if: failure() && startsWith(github.ref, 'refs/tags/v') permissions: issues: write actions: read uses: dapr/.github/.github/workflows/open-issue-on-failure.yml@main with: - title: "Release publish failed: ${{ github.workflow }} (${{ github.ref_name }})" - labels: "release,ci/publish-failure" + title: "Release workflow failed: ${{ github.workflow }} (${{ github.ref_name }})" + labels: "release,ci/release-failure" mention: "@dapr/maintainers-java-sdk @dapr/approvers-java-sdk" - secrets: - dapr_bot_token: ${{ secrets.DAPR_BOT_TOKEN }}