🎨 update workflow

This commit is contained in:
Tw93
2025-08-22 18:03:29 +08:00
parent c01bd99419
commit 885a5673f7
2 changed files with 49 additions and 40 deletions

View File

@@ -20,46 +20,6 @@ env:
IMAGE_NAME: ${{ github.repository }}
jobs:
# Update contributor list
update-contributors:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Update Contributors in README.md
uses: akhilmhdh/contributors-readme-action@v2.3.11
with:
image_size: 90
columns_per_row: 7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update Contributors in README_CN.md
uses: akhilmhdh/contributors-readme-action@v2.3.11
with:
image_size: 90
columns_per_row: 7
readme_path: README_CN.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update Contributors in README_JP.md
uses: akhilmhdh/contributors-readme-action@v2.3.11
with:
image_size: 90
columns_per_row: 7
readme_path: README_JP.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Build and release popular apps
release-apps:
if: |

View File

@@ -0,0 +1,49 @@
name: Update Contributors
on:
push:
branches: [main, dev]
schedule:
- cron: '0 0 * * 0' # Every Sunday at midnight UTC
jobs:
update-contributors:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Update Contributors in README.md
uses: akhilmhdh/contributors-readme-action@v2.3.11
with:
image_size: 90
columns_per_row: 7
auto_detect_branch_protection: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update Contributors in README_CN.md
uses: akhilmhdh/contributors-readme-action@v2.3.11
with:
image_size: 90
columns_per_row: 7
readme_path: README_CN.md
auto_detect_branch_protection: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update Contributors in README_JP.md
uses: akhilmhdh/contributors-readme-action@v2.3.11
with:
image_size: 90
columns_per_row: 7
readme_path: README_JP.md
auto_detect_branch_protection: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}