-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.09 KB
/
scan.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
46
47
name: Scan Songs
on:
push:
branches:
- main
workflow_dispatch:
permissions: write-all
jobs:
fetch_api:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
submodules: 'recursive'
# Update references
- name: Git Submodule Update
run: |
git pull --recurse-submodules
git submodule update --remote --recursive
- name: Commit changes to submodule
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update submodule
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.12"
- name: Run scan
run: python scan.py
- name: Commit and push
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
git pull
git add encore.json
git add covers/*
git commit -m "Update Songs" || echo "No changes"
git push || echo "unable to push"