diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5abb2d9..b26b2fa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,6 +11,7 @@ on: - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/generate-changelog.yml' - '.github/workflows/preview-changelog.yml' + - '.github/workflows/contributors.yml' - '.idea/**' - '.claude/**' - '.gitignore' @@ -30,6 +31,7 @@ on: - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/generate-changelog.yml' - '.github/workflows/preview-changelog.yml' + - '.github/workflows/contributors.yml' - '.idea/**' - '.claude/**' - '.gitignore' diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index 6ca5f23..ebf69bf 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -17,8 +17,8 @@ jobs: env: GH_TOKEN: ${{ secrets.CONTRIBUTORS_TOKEN }} run: | - # Fetch contributors from GitHub API - contributors=$(gh api repos/dtvem/dtvem/contributors --paginate --jq '.[] | "\"\(.login)\"/"') + # Fetch contributors from GitHub API (exclude bots) + contributors=$(gh api repos/dtvem/dtvem/contributors --paginate --jq '.[] | select(.type != "Bot") | select(.login | test("\\[bot\\]$") | not) | "\"\(.login)\"/"') # Build the contributors section contrib_section="