From 3f889a62cc7ef3c6616544e05db8186a73d06f19 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 17 Jul 2024 21:09:45 +0200 Subject: [PATCH] fixup! fixup! tools: add workflow to ensure `README` lists are in sync with gh teams --- .github/workflows/linters-readme.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linters-readme.yml b/.github/workflows/linters-readme.yml index 3bd5b2042a0e51..2d595988151d70 100644 --- a/.github/workflows/linters-readme.yml +++ b/.github/workflows/linters-readme.yml @@ -48,7 +48,9 @@ jobs: GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }} - name: Get modified README if: github.event_name != 'push' - run: curl -fsSLo README.md "https://raw.githubusercontent.com/nodejs/node/$GITHUB_SHA/README.md" + run: curl "https://raw.githubusercontent.com/$GITHUB_REPOSITORY/pull/${PULL_ID}.diff" | git apply --include=README.md + env: + PULL_ID: ${{ github.event.pull_request.number }} - run: tools/lint-readme-lists.mjs "$TEAMS" env: TEAMS: ${{ tojson(steps.team_members.outputs) }}