From 126dab1dd9390f0b3b2772ed9253431657d73236 Mon Sep 17 00:00:00 2001 From: Denis Averin <59285247+Denis-Averin@users.noreply.github.com> Date: Sat, 11 May 2024 01:15:47 +0700 Subject: [PATCH] Check URLs every day (#102) --- .github/workflows/check-codegen.yml | 12 +----------- .github/workflows/check-urls.yml | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 11 deletions(-) create mode 100644 .github/workflows/check-urls.yml diff --git a/.github/workflows/check-codegen.yml b/.github/workflows/check-codegen.yml index c1e443f..bd1cbab 100644 --- a/.github/workflows/check-codegen.yml +++ b/.github/workflows/check-codegen.yml @@ -1,4 +1,4 @@ -name: CI +name: Check pull request # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the main branch @@ -22,16 +22,6 @@ jobs: git submodule update --recursive --remote git diff --exit-code - check-urls: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - submodules: recursive - - - name: Check all URLs - run: ./scripts/check_all_urls.sh - check-swagger: runs-on: ubuntu-latest needs: [check-submodules] diff --git a/.github/workflows/check-urls.yml b/.github/workflows/check-urls.yml new file mode 100644 index 0000000..341bb10 --- /dev/null +++ b/.github/workflows/check-urls.yml @@ -0,0 +1,22 @@ +name: Check URLs + +on: + # Run on each PR to main + pull_request: + branches: + - main + # And every day at 03:00 UTC + schedule: + - cron: '0 3 * * *' + + +jobs: + check-urls: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + + - name: Check all URLs + run: ./scripts/check_all_urls.sh