diff --git a/.github/workflows/smoketest-all.yml b/.github/workflows/smoke-test-all.yml similarity index 97% rename from .github/workflows/smoketest-all.yml rename to .github/workflows/smoke-test-all.yml index bafcc4658..31528a559 100644 --- a/.github/workflows/smoketest-all.yml +++ b/.github/workflows/smoke-test-all.yml @@ -1,4 +1,4 @@ -name: Scheduled Release Smoke Test +name: 'ci: smoke test scheduled release' on: schedule: @@ -210,3 +210,6 @@ jobs: - name: Check results run: | echo "All previous jobs have completed successfully!" + - name: Notify in Teams on failure + if: failure() + uses: ./.github/workflows/smoke-test-webhook.yml diff --git a/.github/workflows/smoketest-webhook.yml b/.github/workflows/smoke-test-failure-webhook.yml similarity index 82% rename from .github/workflows/smoketest-webhook.yml rename to .github/workflows/smoke-test-failure-webhook.yml index 7e03f005a..bc2219cef 100644 --- a/.github/workflows/smoketest-webhook.yml +++ b/.github/workflows/smoke-test-failure-webhook.yml @@ -1,4 +1,4 @@ -name: Smoke test webhook +name: 'ci: smoke test failure webhook' on: push: @@ -8,19 +8,8 @@ on: jobs: build: runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Run your build or tests - run: | - echo "Running build/test..." - # Replace this with your actual build/test command - exit 1 # Simulate failure - - - name: Notify Teams on failure - if: failure() + - name: Post failure in Teams channel env: TEAMS_WEBHOOK_URL: ${{ secrets.TEAMS_WEBHOOK_URL }} REPO_NAME: ${{ github.repository }} @@ -64,7 +53,7 @@ jobs: "actions": [ { "type": "Action.OpenUrl", - "title": "View failed jobs", + "title": "View failed run", "url": "'"${RUN_URL}"'" } ]