Skip to content

Commit 885a567

Browse files
committed
🎨 update workflow
1 parent c01bd99 commit 885a567

File tree

2 files changed

+49
-40
lines changed

2 files changed

+49
-40
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -20,46 +20,6 @@ env:
2020
IMAGE_NAME: ${{ github.repository }}
2121

2222
jobs:
23-
# Update contributor list
24-
update-contributors:
25-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
26-
runs-on: ubuntu-latest
27-
permissions:
28-
contents: write
29-
pull-requests: write
30-
steps:
31-
- name: Checkout
32-
uses: actions/checkout@v4
33-
with:
34-
token: ${{ secrets.GITHUB_TOKEN }}
35-
fetch-depth: 0
36-
37-
- name: Update Contributors in README.md
38-
uses: akhilmhdh/[email protected]
39-
with:
40-
image_size: 90
41-
columns_per_row: 7
42-
env:
43-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44-
45-
- name: Update Contributors in README_CN.md
46-
uses: akhilmhdh/[email protected]
47-
with:
48-
image_size: 90
49-
columns_per_row: 7
50-
readme_path: README_CN.md
51-
env:
52-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53-
54-
- name: Update Contributors in README_JP.md
55-
uses: akhilmhdh/[email protected]
56-
with:
57-
image_size: 90
58-
columns_per_row: 7
59-
readme_path: README_JP.md
60-
env:
61-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62-
6323
# Build and release popular apps
6424
release-apps:
6525
if: |
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Update Contributors
2+
3+
on:
4+
push:
5+
branches: [main, dev]
6+
schedule:
7+
- cron: '0 0 * * 0' # Every Sunday at midnight UTC
8+
9+
jobs:
10+
update-contributors:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
pull-requests: write
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
with:
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
fetch-depth: 0
21+
22+
- name: Update Contributors in README.md
23+
uses: akhilmhdh/[email protected]
24+
with:
25+
image_size: 90
26+
columns_per_row: 7
27+
auto_detect_branch_protection: false
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
31+
- name: Update Contributors in README_CN.md
32+
uses: akhilmhdh/[email protected]
33+
with:
34+
image_size: 90
35+
columns_per_row: 7
36+
readme_path: README_CN.md
37+
auto_detect_branch_protection: false
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
41+
- name: Update Contributors in README_JP.md
42+
uses: akhilmhdh/[email protected]
43+
with:
44+
image_size: 90
45+
columns_per_row: 7
46+
readme_path: README_JP.md
47+
auto_detect_branch_protection: false
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)