From e7f81a879a0c1b3d1fb72f19556f2463da2e64f6 Mon Sep 17 00:00:00 2001 From: Christoph Kuhnke Date: Tue, 21 May 2024 09:46:37 +0200 Subject: [PATCH] Update check-api-outdated.yml --- .github/workflows/check-api-outdated.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-api-outdated.yml b/.github/workflows/check-api-outdated.yml index f47778d..0bf257b 100644 --- a/.github/workflows/check-api-outdated.yml +++ b/.github/workflows/check-api-outdated.yml @@ -12,12 +12,28 @@ on: schedule: # “At 4 am on every day.” (https://crontab.guru) # - cron: "0 4 * * *" - - cron: "0 9-14 * * *" + - cron: "* 9-14 * * *" jobs: - check-api-outdated: + verify-events: + name: Verified Correct Identification of Trigger Events + runs-on: ubuntu-latest + strategy: + fail-fast: false + + steps: + - name: Intentionally failing event + run: false + - name: Report Failure Status to Slack Channel + if: ${{ failure() }} + run: echo "job failed" + - name: Report Failure Status to Slack Channel + if: ${{ failure() && github.event_name == "schedule" }} + run: echo "job failed and was triggered by schedule" + + check-api-outdated: name: Check if OpenAPI Generated From JSON is Outdated runs-on: ubuntu-latest strategy: