Don't open issue on re-runs
to avoid confusions like
MODIFY
.github/workflows/build-daily-no-build-cache.yml
.github/workflows/build-daily-no-build-cache.yml
@@ -31,5 +31,5 @@ jobs:
needs:
- common
- test-latest-deps
- if: failure()
+ if: failure() && github.run_attempt == 1
uses: ./.github/workflows/reusable-open-issue-on-failure.yml

MODIFY
.github/workflows/build-daily.yml
.github/workflows/build-daily.yml
@@ -40,5 +40,5 @@ jobs:
- muzzle
- markdown-link-check
- misspell-check
- if: failure()
+ if: failure() && github.run_attempt == 1
uses: ./.github/workflows/reusable-open-issue-on-failure.yml

MODIFY
.github/workflows/codeql-daily.yml
.github/workflows/codeql-daily.yml
@@ -35,5 +35,5 @@ jobs:
# open an issue on failure because it can be easy to miss CI failure notifications
needs:
- analyze
- if: failure()
+ if: failure() && github.run_attempt == 1
uses: ./.github/workflows/reusable-open-issue-on-failure.yml

MODIFY
.github/workflows/overhead-benchmark-daily.yml
.github/workflows/overhead-benchmark-daily.yml
@@ -48,5 +48,5 @@ jobs:
open-issue-on-failure:
needs:
- run-overhead-tests
- if: failure()
+ if: failure() && github.run_attempt == 1
uses: ./.github/workflows/reusable-open-issue-on-failure.yml

MODIFY
.github/workflows/publish-smoke-test-fake-backend-images.yml
.github/workflows/publish-smoke-test-fake-backend-images.yml
@@ -72,5 +72,5 @@ jobs:
needs:
- publishLinux
- publishWindows
- if: failure()
+ if: failure() && github.run_attempt == 1
uses: ./.github/workflows/reusable-open-issue-on-failure.yml

MODIFY
.github/workflows/publish-smoke-test-grpc-images.yml
.github/workflows/publish-smoke-test-grpc-images.yml
@@ -19,5 +19,5 @@ jobs:
open-issue-on-failure:
needs:
- publish
- if: failure()
+ if: failure() && github.run_attempt == 1
uses: ./.github/workflows/reusable-open-issue-on-failure.yml

MODIFY
.github/workflows/publish-smoke-test-play-images.yml
.github/workflows/publish-smoke-test-play-images.yml
@@ -23,5 +23,5 @@ jobs:
open-issue-on-failure:
needs:
- publish
- if: failure()
+ if: failure() && github.run_attempt == 1
uses: ./.github/workflows/reusable-open-issue-on-failure.yml

MODIFY
.github/workflows/publish-smoke-test-quarkus-images.yml
.github/workflows/publish-smoke-test-quarkus-images.yml
@@ -21,5 +21,5 @@ jobs:
open-issue-on-failure:
needs:
- publish
- if: failure()
+ if: failure() && github.run_attempt == 1
uses: ./.github/workflows/reusable-open-issue-on-failure.yml

MODIFY
.github/workflows/publish-smoke-test-servlet-images.yml
.github/workflows/publish-smoke-test-servlet-images.yml
@@ -72,5 +72,5 @@ jobs:
open-issue-on-failure:
needs:
- publish
- if: failure()
+ if: failure() && github.run_attempt == 1
uses: ./.github/workflows/reusable-open-issue-on-failure.yml

MODIFY
.github/workflows/publish-smoke-test-spring-boot-images.yml
.github/workflows/publish-smoke-test-spring-boot-images.yml
@@ -19,5 +19,5 @@ jobs:
open-issue-on-failure:
needs:
- publish
- if: failure()
+ if: failure() && github.run_attempt == 1
uses: ./.github/workflows/reusable-open-issue-on-failure.yml

MODIFY
.github/workflows/reusable-open-issue-on-failure.yml
.github/workflows/reusable-open-issue-on-failure.yml
-name: Reusable - Open issue on failure
+name: Reusable - Open issue on workflow failure
on:
workflow_call:

Don't open issue on re-runs (#7186)

to avoid confusions like
https://github.com/open-telemetry/opentelemetry-java-instrumentation/issues/7181#issuecomment-1315828235