Skip to content

Commit b925fac

Browse files
committed
Add failure issue notifications
1 parent d07abb8 commit b925fac

9 files changed

Lines changed: 75 additions & 7 deletions

.github/workflows/benchmark.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,13 @@ jobs:
6565
github-token: ${{ secrets.GITHUB_TOKEN }}
6666
benchmark-data-dir-path: "benchmarks"
6767
auto-push: true
68+
69+
workflow-notification:
70+
permissions:
71+
issues: write
72+
needs:
73+
- sdk-benchmark
74+
if: always()
75+
uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@7c49790392da7de86fdb4bb968446f9cb8461eb8 # v0.3.1
76+
with:
77+
success: ${{ needs.sdk-benchmark.result == 'success' }}

.github/workflows/build-daily.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,12 @@ jobs:
4242

4343
workflow-notification:
4444
permissions:
45-
contents: read
4645
issues: write
4746
needs:
4847
- link-check
4948
- publish-snapshots
50-
if: always() && github.repository == 'open-telemetry/opentelemetry-java'
51-
uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@70659e38ed50e743a5cce6fb40ba336c40154aa1 # v0.3.0
49+
if: always()
50+
uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@7c49790392da7de86fdb4bb968446f9cb8461eb8 # v0.3.1
5251
with:
5352
success: >-
5453
${{

.github/workflows/build-tracecontext-testsuite.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,13 @@ jobs:
3535
context: integration-tests/tracecontext/docker
3636
push: true
3737
tags: ghcr.io/open-telemetry/java-test-containers:w3c-tracecontext-testsuite
38+
39+
workflow-notification:
40+
permissions:
41+
issues: write
42+
needs:
43+
- publish
44+
if: always()
45+
uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@7c49790392da7de86fdb4bb968446f9cb8461eb8 # v0.3.1
46+
with:
47+
success: ${{ needs.publish.result == 'success' }}

.github/workflows/codeql.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,14 @@ jobs:
6464
- name: Perform CodeQL analysis
6565
uses: github/codeql-action/analyze@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0
6666
with:
67-
category: "/language:${{matrix.language}}"
67+
category: "/language:${{matrix.language}}"
68+
69+
workflow-notification:
70+
permissions:
71+
issues: write
72+
needs:
73+
- analyze
74+
if: always() && github.event_name == 'schedule'
75+
uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@7c49790392da7de86fdb4bb968446f9cb8461eb8 # v0.3.1
76+
with:
77+
success: ${{ needs.analyze.result == 'success' }}

.github/workflows/fossa.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,13 @@ jobs:
1919
with:
2020
api-key: ${{secrets.FOSSA_API_KEY}}
2121
team: OpenTelemetry
22+
23+
workflow-notification:
24+
permissions:
25+
issues: write
26+
needs:
27+
- fossa
28+
if: always()
29+
uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@7c49790392da7de86fdb4bb968446f9cb8461eb8 # v0.3.1
30+
with:
31+
success: ${{ needs.fossa.result == 'success' }}

.github/workflows/issue-management-stale-action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,13 @@ jobs:
3131
This has been automatically marked as stale because it has been marked
3232
as needing author feedback and has not had any activity for 7 days.
3333
It will be closed if no further activity occurs within 7 days of this comment.
34+
35+
workflow-notification:
36+
permissions:
37+
issues: write
38+
needs:
39+
- stale
40+
if: always()
41+
uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@7c49790392da7de86fdb4bb968446f9cb8461eb8 # v0.3.1
42+
with:
43+
success: ${{ needs.stale.result == 'success' }}

.github/workflows/javadoc-crawler.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,13 @@ jobs:
2727
run: ./gradlew :javadoc-crawler:crawl
2828
env:
2929
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
30+
31+
workflow-notification:
32+
permissions:
33+
issues: write
34+
needs:
35+
- crawl
36+
if: always()
37+
uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@7c49790392da7de86fdb4bb968446f9cb8461eb8 # v0.3.1
38+
with:
39+
success: ${{ needs.crawl.result == 'success' }}

.github/workflows/ossf-scorecard.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,13 @@ jobs:
4747
uses: github/codeql-action/upload-sarif@99df26d4f13ea111d4ec1a7dddef6063f76b97e9 # v4.37.0
4848
with:
4949
sarif_file: results.sarif
50+
51+
workflow-notification:
52+
permissions:
53+
issues: write
54+
needs:
55+
- analysis
56+
if: always()
57+
uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@7c49790392da7de86fdb4bb968446f9cb8461eb8 # v0.3.1
58+
with:
59+
success: ${{ needs.analysis.result == 'success' }}

.github/workflows/sonatype-guide-dependency-audit-daily.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@ jobs:
4343
4444
workflow-notification:
4545
permissions:
46-
contents: read
4746
issues: write
4847
needs:
4948
- analyze
50-
if: always() && github.repository == 'open-telemetry/opentelemetry-java'
51-
uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@70659e38ed50e743a5cce6fb40ba336c40154aa1 # v0.3.0
49+
if: always()
50+
uses: open-telemetry/shared-workflows/.github/workflows/workflow-failure-issue.yml@7c49790392da7de86fdb4bb968446f9cb8461eb8 # v0.3.1
5251
with:
5352
success: ${{ needs.analyze.result == 'success' }}

0 commit comments

Comments
 (0)