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 }}