Skip to content

Commit

Permalink
fix: Create one and only one failed alert issue for failed jobs in da…
Browse files Browse the repository at this point in the history
…ily checking (#48)
  • Loading branch information
hustcer authored Jan 29, 2025
1 parent 0000000 commit 5da2f42
Showing 1 changed file with 8 additions and 22 deletions.
30 changes: 8 additions & 22 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,6 @@ jobs:
run: |
moon version --all
- name: Create an Issue for Release Failure
if: ${{ failure() }}
uses: JasonEtco/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
update_existing: true
search_existing: open
filename: .github/AUTO_ISSUE_TEMPLATE/daily-checking-fail.md

setup-nightly:
strategy:
fail-fast: false
Expand All @@ -68,17 +58,6 @@ jobs:
run: |
moon version --all
- name: Create an Issue for Release Failure
if: ${{ failure() }}
uses: JasonEtco/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
update_existing: true
search_existing: open
filename: .github/AUTO_ISSUE_TEMPLATE/daily-checking-fail.md


setup-bleeding:
strategy:
fail-fast: false
Expand All @@ -102,8 +81,15 @@ jobs:
run: |
moon version --all
create-failure-alert:
needs: [setup-latest, setup-nightly, setup-bleeding]
runs-on: ubuntu-latest
if: ${{ failure() }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Create an Issue for Release Failure
if: ${{ failure() }}
uses: JasonEtco/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 5da2f42

Please sign in to comment.