forked from vfsfitvnm/ViMusic
-
Notifications
You must be signed in to change notification settings - Fork 133
37 lines (28 loc) · 1018 Bytes
/
update-contributors.yaml
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
37
name: Automatically update contributors.json
on:
schedule:
- cron: '0 0 * * 1' # Every Monday @ 00:00
# Allow manual trigger
workflow_dispatch:
jobs:
update-contributors:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- uses: actions/[email protected]
- name: Setup Python
uses: actions/[email protected]
- name: Get contributors
run: "python get_developers.py"
- name: Copy generated contributors.json to its correct place
run: "mv contributors.json composeApp/src/androidMain/res/raw/contributors.json"
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%m-%d-%Y')"
- name: Push changes
uses: stefanzweifel/[email protected]
with:
commit_message: "updated ${{ steps.date.outputs.date }}"