-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (34 loc) · 1016 Bytes
/
music_list.yml
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
38
39
40
41
42
43
44
45
name: Félix
on:
push:
branches:
- main
jobs:
generate-file-list:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: pip install --upgrade pip
- name: Generate music list
run: python generate_music_list.py
- name: Stash changes
run: git stash --include-untracked
- name: Pull with rebase
run: git pull --rebase
- name: Apply stashed changes
run: git stash pop
- name: Commit and push changes
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add music.json
git commit -m "Update" -m "music.json"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}