You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: #40393
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
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
23
-
echo 'DUPLICATES<<EOF' >> $GITHUB_ENV
24
-
if [ ! -z "${DUPLICATES}" ]; then
25
-
echo "The following may be duplicates; consider adding a .mailmap entry for them:" >> $GITHUB_ENV;
26
-
echo "${DUPLICATES}" >> $GITHUB_ENV;
27
-
fi;
28
-
echo 'EOF' >> $GITHUB_ENV; # Each line of duplicates starts with a space, so it won't conflict with 'EOF'
29
18
- uses: gr2m/create-or-update-pull-request-action@v1 # Create a PR or update the Action's existing PR
30
19
env:
31
20
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
32
21
with:
33
22
author: Node.js GitHub Bot <github-bot@iojs.org>
34
-
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 }}"
23
+
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`."
35
24
branch: "actions/authors-update"# Custom branch *just* for this Action.
0 commit comments