forked from Karanjot786/TermUI
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 941 Bytes
/
Copy pathgenerate-contributors.yml
File metadata and controls
36 lines (30 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Generate Contributors
on:
schedule:
- cron: '0 0 * * 0' # Weekly at midnight on Sunday
release:
types: [published]
workflow_dispatch:
jobs:
update-contributors:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.14
- name: Run generation script
run: bun scripts/generate-contributors.mjs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit and push if changed
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "docs: auto-generate CONTRIBUTORS.md [skip ci]"
file_pattern: 'CONTRIBUTORS.md'
commit_user_name: 'github-actions[bot]'
commit_user_email: 'github-actions[bot]@users.noreply.github.com'