From b4c776b4c4f253391ed14dd0f50984e41cbc6bef Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Tue, 22 Oct 2024 08:34:44 +1300 Subject: [PATCH] ci: add job to ensure that ecosystem lists are all in sync Signed-off-by: Gareth Jones --- .github/workflows/checks.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index e46d232..8d9954b 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -57,3 +57,22 @@ jobs: check-latest: true - run: go test ./... + + ecosystem_lists: + permissions: + contents: read # to fetch code (actions/checkout) + name: Check ecosystem lists + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1 + with: + persist-credentials: false + - uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 + with: + python-version: 3.13 + - run: python3 ./scripts/update-ecosystems-lists.py + - run: | + git diff --name-only \ + | xargs -I '{}' bash -c \ + 'echo "::error file={}::This needs to be regenerated by running \`python3 ./scripts/update-ecosystems-lists.py\`" && false'