Files
HackBrowserData/.github/workflows/contributors.yml
T
RogerandGitHub 168312f15f ci: open a PR for contributor updates instead of pushing to main (#625)
The shared app is not in the main ruleset's bypass list, so its direct push is rejected; the skip-ci marker has to go too, or the generated PR's required checks never report and it can never merge.

Claude-Session: https://claude.ai/code/session_011GzPywfeNAx2BVA2M6RnuH
2026-08-02 20:39:17 +08:00

40 lines
1.1 KiB
YAML

name: Contributors
on:
push:
branches:
- main
paths-ignore:
- README.md
schedule:
- cron: '0 1 1 * *' # 1st of each month at 01:00 UTC
workflow_dispatch:
jobs:
contributors:
runs-on: ubuntu-latest
steps:
- name: Generate app token
uses: actions/create-github-app-token@v3
id: app-token
with:
client-id: ${{ vars.MOOND4RK_CI_RELEASE_APP_CLIENT_ID }}
private-key: ${{ secrets.MOOND4RK_CI_RELEASE_APP_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v7
with:
token: ${{ steps.app-token.outputs.token }}
- name: Update contributors list
uses: akhilmhdh/contributors-readme-action@v2.3.11
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
with:
image_size: 100
columns_per_row: 6
readme_path: README.md
auto_detect_branch_protection: true
commit_message: 'chore: update contributors list'
pr_title_on_protected: 'chore: update contributors list'