From f2e38b97beca5207d73212164fba37734ef064cb Mon Sep 17 00:00:00 2001 From: levisingularity Date: Wed, 17 Jul 2024 16:41:37 -0300 Subject: [PATCH] ci: add check repos workflow --- .github/workflows/check-repos.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/check-repos.yml diff --git a/.github/workflows/check-repos.yml b/.github/workflows/check-repos.yml new file mode 100644 index 0000000..e010a97 --- /dev/null +++ b/.github/workflows/check-repos.yml @@ -0,0 +1,29 @@ +--- +name: Daily repo check + +on: + push: + branches: + - feat/check-repos + # schedule: + # - cron: "15 4,5 * * *" + +jobs: + setup: + runs-on: ubuntu-latest + outputs: + scheduled-repos: ${{ secrets.SCHEDULED_REPOS }} + + lint: + runs-on: ubuntu-latest + needs: setup + strategy: + matrix: + repo: ${{ fromJson(needs.outputs.scheduled-repos) }} + steps: + - name: Invoke workflow without inputs. Wait for result + uses: the-actions-org/workflow-dispatch@v4 + with: + workflow: ${{ matrix.repo.name }} + repo: ${{ matrix.repo.repo }} + token: ${{ secrets.GH_TOKEN }}