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