diff --git a/.github/workflows/build-tag.yaml b/.github/workflows/build-tag.yaml index ddca3cc2..da80191b 100644 --- a/.github/workflows/build-tag.yaml +++ b/.github/workflows/build-tag.yaml @@ -105,3 +105,18 @@ jobs: # under `dapr/ext//` claimed by both distributions, and `pip # uninstall ` would delete files that core dapr now provides. # See RELEASE.md and the runtime warning in dapr/__init__.py. + + # Opens (or comments on) a tracking issue only when the publish job (PyPI + # upload) fails. Lint/build failures skip publish, so failure() stays false + # and CI flakes don't open issues. + notify-on-failure: + 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 workflow failed: ${{ github.workflow }} (${{ github.ref_name }})" + labels: "release,ci/release-failure" + mention: "@dapr/maintainers-python-sdk @dapr/approvers-python-sdk"