-
Notifications
You must be signed in to change notification settings - Fork 791
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove more third-party github actions (#5657)
- Loading branch information
Showing
12 changed files
with
47 additions
and
156 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |