Skip to content

Commit

Permalink
Remove more third-party github actions (#5657)
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Mar 21, 2022
1 parent 8e2a33b commit 3ebb628
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 156 deletions.
6 changes: 0 additions & 6 deletions .github/templates/workflow-failed.md

This file was deleted.

17 changes: 2 additions & 15 deletions .github/workflows/nightly-benchmark-overhead.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

- uses: actions/checkout@v3

- uses: JasonEtco/[email protected]
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
17 changes: 2 additions & 15 deletions .github/workflows/nightly-codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

- uses: actions/checkout@v3

- uses: JasonEtco/[email protected]
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
17 changes: 2 additions & 15 deletions .github/workflows/nightly-no-build-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

- uses: actions/checkout@v3

- uses: JasonEtco/[email protected]
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
17 changes: 2 additions & 15 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

- uses: actions/checkout@v3

- uses: JasonEtco/[email protected]
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
17 changes: 2 additions & 15 deletions .github/workflows/publish-smoke-test-fake-backend-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

- uses: actions/checkout@v3

- uses: JasonEtco/[email protected]
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
17 changes: 2 additions & 15 deletions .github/workflows/publish-smoke-test-grpc-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

- uses: actions/checkout@v3

- uses: JasonEtco/[email protected]
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
17 changes: 2 additions & 15 deletions .github/workflows/publish-smoke-test-play-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

- uses: actions/checkout@v3

- uses: JasonEtco/[email protected]
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
17 changes: 2 additions & 15 deletions .github/workflows/publish-smoke-test-quarkus-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

- uses: actions/checkout@v3

- uses: JasonEtco/[email protected]
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
17 changes: 2 additions & 15 deletions .github/workflows/publish-smoke-test-servlet-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

- uses: actions/checkout@v3

- uses: JasonEtco/[email protected]
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
17 changes: 2 additions & 15 deletions .github/workflows/publish-smoke-test-spring-boot-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]

- uses: actions/checkout@v3

- uses: JasonEtco/[email protected]
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
27 changes: 27 additions & 0 deletions .github/workflows/reusable-create-issue-for-failure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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

0 comments on commit 3ebb628

Please sign in to comment.