diff options
author | Rich Trott <rtrott@gmail.com> | 2021-10-10 03:52:51 +0300 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2021-10-12 04:48:33 +0300 |
commit | 73c3885e10ac9cc3466f56759c2d2611c2439389 (patch) | |
tree | d995412d333c46277ea1e84810fabf3b8c531023 | |
parent | 012152d7d6d46e5027fd24e52c206288f00fa16c (diff) |
build: remove duplicate check for authors.yml
update-authors.js will print if there are duplicates in the new entries
so we can remove the (not working) duplication check in the authors.yml
file. It would still be nice to get the information about duplicates
into the body of the GitHub PR so no one has to manually check for
duplicates (by either examining the file or looking at the Actions
output), but that can be a future improvement.
PR-URL: https://github.com/nodejs/node/pull/40393
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
-rw-r--r-- | .github/workflows/authors.yml | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/.github/workflows/authors.yml b/.github/workflows/authors.yml index e2195c9e73e..7374ff66a8c 100644 --- a/.github/workflows/authors.yml +++ b/.github/workflows/authors.yml @@ -15,23 +15,12 @@ jobs: with: fetch-depth: '0' # This is required to actually get all the authors - run: "tools/update-authors.js" # Run the AUTHORS tool - - name: "Check for duplicates" - run: | - PATTERN_FILE=`mktemp`; - git diff | egrep '^\+[^+]' | perl -pe 's/^\+(.+?) <.+\n/\1\n/g' > $PATTERN_FILE; - DUPLICATES=`grep -F -f $PATTERN_FILE AUTHORS | cut -d'<' -f1 | sort | uniq -c | sort -n | grep -v '^ *1 ' | perl -pe 's/^ *\d+ / /'`; # Last part here substitues a space at the start of each line - echo 'DUPLICATES<<EOF' >> $GITHUB_ENV - if [ ! -z "${DUPLICATES}" ]; then - echo "The following may be duplicates; consider adding a .mailmap entry for them:" >> $GITHUB_ENV; - echo "${DUPLICATES}" >> $GITHUB_ENV; - fi; - echo 'EOF' >> $GITHUB_ENV; # Each line of duplicates starts with a space, so it won't conflict with 'EOF' - uses: gr2m/create-or-update-pull-request-action@v1 # Create a PR or update the Action's existing PR env: GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }} with: author: Node.js GitHub Bot <github-bot@iojs.org> - body: "Here are some new additions to the AUTHORS file. This is an automatically generated PR by the `authors.yml` GitHub Action, which runs `tools/update-authors.js`.\n\n{{ env.DUPLICATES }}" + body: "Here are some new additions to the AUTHORS file. This is an automatically generated PR by the `authors.yml` GitHub Action, which runs `tools/update-authors.js`." branch: "actions/authors-update" # Custom branch *just* for this Action. commit-message: "meta: update AUTHORS" labels: meta |