Skip to content

Commit

Permalink
Skip checking contributors for partials (#2446)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdams authored Nov 20, 2023
1 parent 374ad1f commit 88e0ad0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/check-contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ jobs:
update_authors() {
local file=$1
if [[ ${file} =~ ^content/asciidoc.*.adoc ]]; then
# If page is in a _partials directory, skip it
if [[ ${file} =~ ^content/asciidoc.*_partials.*.adoc ]]; then
return
fi
current_authors=$(grep ':page-authors:' "${file}" | sed -n -e 's/^.*page-authors: //p')
contibutors=$(python3 .github/workflows/github-file-contributors.py --file "${file}")
for contibutor in ${contibutors}; do
Expand Down

0 comments on commit 88e0ad0

Please sign in to comment.