forked from DBuit/custom-sonos-card
-
-
Notifications
You must be signed in to change notification settings - Fork 23
40 lines (35 loc) · 891 Bytes
/
sync-with-mxmp.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
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: |
npm install
npm run build
- uses: actions/checkout@v4
with:
repository: punxaphil/maxi-media-player
token: ${{ secrets.PAT_TOKEN }}
path: mxmp
- name: Update MXMP repository
run: |
cd mxmp
cp ../dist-maxi-media-player/README.md .
rm -rf img
mkdir img
cp ../img/* img/
git add -N .
diff=$(git diff)
if [ ! -z "$diff" ]
then
git config user.name "Johan Frick"
git config user.email "[email protected]"
git add .
git commit -am"updated README.md"
git push origin main
fi