Files
HackBrowserData/.github/workflows/contributors.yml
moonD4rk f8e34d50b6 ci: unify bot automation on the shared GitHub App
Point contributors.yml at the shared app via client-id (was the old hackbrowserdata-bot app), and replace the long-lived Homebrew PAT with a short-lived app token scoped to homebrew-tap for the formula push.
2026-07-05 00:46:09 +08:00

39 lines
1023 B
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: false
commit_message: 'chore: update contributors list [skip ci]'