mirror of
https://github.com/ITStudioOUC/.github.git
synced 2026-06-17 05:56:33 +00:00
Update update-members.yml
This commit is contained in:
@@ -3,10 +3,13 @@ name: Update Organization Members
|
|||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * *'
|
- cron: '0 0 * * *'
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write # 配合 fine-grained token 或者是 GITHUB_TOKEN 的默认写权限
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-readme:
|
update-readme:
|
||||||
@@ -25,14 +28,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Update Members Script
|
- name: Update Members Script
|
||||||
env:
|
env:
|
||||||
# 这里使用的是你刚刚生成的 Fine-grained Token
|
|
||||||
GH_TOKEN: ${{ secrets.ORG_READ_TOKEN }}
|
GH_TOKEN: ${{ secrets.ORG_READ_TOKEN }}
|
||||||
ORG_NAME: ${{ github.repository_owner }}
|
ORG_NAME: ${{ github.repository_owner }}
|
||||||
run: python scripts/update_members.py
|
run: python scripts/update_members.py
|
||||||
|
|
||||||
- name: Commit and Push Changes
|
- name: Commit and Push Changes
|
||||||
# 如果使用 Fine-grained Token 更新内容,git-auto-commit-action 通常需要明确指定 token
|
|
||||||
# 或者直接使用默认的 GITHUB_TOKEN 进行提交(如果不需要触发其他流程)
|
|
||||||
uses: stefanzweifel/git-auto-commit-action@v5
|
uses: stefanzweifel/git-auto-commit-action@v5
|
||||||
with:
|
with:
|
||||||
commit_message: "docs: update organization members list"
|
commit_message: "docs: update organization members list"
|
||||||
|
|||||||
Reference in New Issue
Block a user