Remove more third-party github actions
DELETE
.github/templates/workflow-failed.md
----
-title: "{{ env.GITHUB_WORKFLOW }} #{{ env.GITHUB_RUN_NUMBER }} failed"
-labels: bug, area:build, priority:p1
----
-<a href="https://github.com/{{ env.GITHUB_REPOSITORY }}/actions/runs/{{ env.GITHUB_RUN_ID }}">
-{{ env.GITHUB_WORKFLOW }} #{{ env.GITHUB_RUN_NUMBER }}</a> failed. Please take a look and fix it ASAP.

MODIFY
.github/workflows/nightly-benchmark-overhead.yml
.github/workflows/nightly-benchmark-overhead.yml
@@ -42,18 +42,5 @@ jobs:
issue:
name: Open issue on failure
needs: run-overhead-tests
- runs-on: ubuntu-latest
- if: always()
- steps:
- # run this action to get workflow conclusion
- # You can get conclusion by env (env.WORKFLOW_CONCLUSION)
- - uses: technote-space/workflow-conclusion-action@v2.2
-
- - uses: actions/checkout@v3
-
- - uses: JasonEtco/create-an-issue@v2.6
- if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- filename: .github/templates/workflow-failed.md
+ if: failure()
+ uses: ./.github/workflows/reusable-create-issue-for-failure.yml

MODIFY
.github/workflows/nightly-codeql-analysis.yml
.github/workflows/nightly-codeql-analysis.yml
@@ -37,18 +37,5 @@ jobs:
issue:
name: Open issue on failure
needs: analyze
- runs-on: ubuntu-latest
- if: always()
- steps:
- # run this action to get workflow conclusion
- # You can get conclusion by env (env.WORKFLOW_CONCLUSION)
- - uses: technote-space/workflow-conclusion-action@v2.2
-
- - uses: actions/checkout@v3
-
- - uses: JasonEtco/create-an-issue@v2.6
- if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- filename: .github/templates/workflow-failed.md
+ if: failure()
+ uses: ./.github/workflows/reusable-create-issue-for-failure.yml

MODIFY
.github/workflows/nightly-no-build-cache.yml
.github/workflows/nightly-no-build-cache.yml
@@ -49,18 +49,5 @@ jobs:
issue:
name: Open issue on failure
needs: [ build, test, testLatestDeps, smoke-test, examples ]
- runs-on: ubuntu-latest
- if: always()
- steps:
- # run this action to get workflow conclusion
- # You can get conclusion by env (env.WORKFLOW_CONCLUSION)
- - uses: technote-space/workflow-conclusion-action@v2.2
-
- - uses: actions/checkout@v3
-
- - uses: JasonEtco/create-an-issue@v2.6
- if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- filename: .github/templates/workflow-failed.md
+ if: failure()
+ uses: ./.github/workflows/reusable-create-issue-for-failure.yml

MODIFY
.github/workflows/nightly.yml
.github/workflows/nightly.yml
@@ -70,18 +70,5 @@ jobs:
issue:
name: Open issue on failure
needs: [ build, test, testLatestDeps, smoke-test, examples, markdown-link-check, markdown-misspell-check ]
- runs-on: ubuntu-latest
- if: always()
- steps:
- # run this action to get workflow conclusion
- # You can get conclusion by env (env.WORKFLOW_CONCLUSION)
- - uses: technote-space/workflow-conclusion-action@v2.2
-
- - uses: actions/checkout@v3
-
- - uses: JasonEtco/create-an-issue@v2.6
- if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- filename: .github/templates/workflow-failed.md
+ if: failure()
+ uses: ./.github/workflows/reusable-create-issue-for-failure.yml

MODIFY
.github/workflows/publish-smoke-test-fake-backend-images.yml
.github/workflows/publish-smoke-test-fake-backend-images.yml
@@ -73,18 +73,5 @@ jobs:
issue:
name: Open issue on failure
needs: [ publishLinux, publishWindows ]
- runs-on: ubuntu-latest
- if: always()
- steps:
- # run this action to get workflow conclusion
- # You can get conclusion by env (env.WORKFLOW_CONCLUSION)
- - uses: technote-space/workflow-conclusion-action@v2.2
-
- - uses: actions/checkout@v3
-
- - uses: JasonEtco/create-an-issue@v2.6
- if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- filename: .github/templates/workflow-failed.md
+ if: failure()
+ uses: ./.github/workflows/reusable-create-issue-for-failure.yml

MODIFY
.github/workflows/publish-smoke-test-grpc-images.yml
.github/workflows/publish-smoke-test-grpc-images.yml
@@ -19,18 +19,5 @@ jobs:
issue:
name: Open issue on failure
needs: publish
- runs-on: ubuntu-latest
- if: always()
- steps:
- # run this action to get workflow conclusion
- # You can get conclusion by env (env.WORKFLOW_CONCLUSION)
- - uses: technote-space/workflow-conclusion-action@v2.2
-
- - uses: actions/checkout@v3
-
- - uses: JasonEtco/create-an-issue@v2.6
- if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- filename: .github/templates/workflow-failed.md
+ if: failure()
+ uses: ./.github/workflows/reusable-create-issue-for-failure.yml

MODIFY
.github/workflows/publish-smoke-test-play-images.yml
.github/workflows/publish-smoke-test-play-images.yml
@@ -53,18 +53,5 @@ jobs:
issue:
name: Open issue on failure
needs: [ publish, publish-java-15 ]
- runs-on: ubuntu-latest
- if: always()
- steps:
- # run this action to get workflow conclusion
- # You can get conclusion by env (env.WORKFLOW_CONCLUSION)
- - uses: technote-space/workflow-conclusion-action@v2.2
-
- - uses: actions/checkout@v3
-
- - uses: JasonEtco/create-an-issue@v2.6
- if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- filename: .github/templates/workflow-failed.md
+ if: failure()
+ uses: ./.github/workflows/reusable-create-issue-for-failure.yml

MODIFY
.github/workflows/publish-smoke-test-quarkus-images.yml
.github/workflows/publish-smoke-test-quarkus-images.yml
@@ -21,18 +21,5 @@ jobs:
issue:
name: Open issue on failure
needs: publish
- runs-on: ubuntu-latest
- if: always()
- steps:
- # run this action to get workflow conclusion
- # You can get conclusion by env (env.WORKFLOW_CONCLUSION)
- - uses: technote-space/workflow-conclusion-action@v2.2
-
- - uses: actions/checkout@v3
-
- - uses: JasonEtco/create-an-issue@v2.6
- if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- filename: .github/templates/workflow-failed.md
+ if: failure()
+ uses: ./.github/workflows/reusable-create-issue-for-failure.yml

MODIFY
.github/workflows/publish-smoke-test-servlet-images.yml
.github/workflows/publish-smoke-test-servlet-images.yml
@@ -74,18 +74,5 @@ jobs:
issue:
name: Open issue on failure
needs: publish
- runs-on: ubuntu-latest
- if: always()
- steps:
- # run this action to get workflow conclusion
- # You can get conclusion by env (env.WORKFLOW_CONCLUSION)
- - uses: technote-space/workflow-conclusion-action@v2.2
-
- - uses: actions/checkout@v3
-
- - uses: JasonEtco/create-an-issue@v2.6
- if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- filename: .github/templates/workflow-failed.md
+ if: failure()
+ uses: ./.github/workflows/reusable-create-issue-for-failure.yml

MODIFY
.github/workflows/publish-smoke-test-spring-boot-images.yml
.github/workflows/publish-smoke-test-spring-boot-images.yml
@@ -19,18 +19,5 @@ jobs:
issue:
name: Open issue on failure
needs: publish
- runs-on: ubuntu-latest
- if: always()
- steps:
- # run this action to get workflow conclusion
- # You can get conclusion by env (env.WORKFLOW_CONCLUSION)
- - uses: technote-space/workflow-conclusion-action@v2.2
-
- - uses: actions/checkout@v3
-
- - uses: JasonEtco/create-an-issue@v2.6
- if: env.WORKFLOW_CONCLUSION == 'failure' # notify only if failure
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- with:
- filename: .github/templates/workflow-failed.md
+ if: failure()
+ uses: ./.github/workflows/reusable-create-issue-for-failure.yml

ADD
.github/workflows/reusable-create-issue-for-failure.yml
+name: Reusable - Create issue for failure
+
+on:
+ workflow_call:
+
+jobs:
+ create-issue:
+ name: Create issue
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+
+ - name: Create issue
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: |
+ cat > body.txt << EOF
+ [$GITHUB_WORKFLOW #$GITHUB_RUN_NUMBER](https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID) failed.
+
+ Please take a look and fix it ASAP.
+ EOF
+
+ gh issue create --title "$GITHUB_WORKFLOW #$GITHUB_RUN_NUMBER failed" \
+ --label bug \
+ --label area:build \
+ --label priority:p1 \
+ --body-file body.txt

Remove more third-party github actions (#5657)