File tree Expand file tree Collapse file tree 1 file changed +28
-13
lines changed Expand file tree Collapse file tree 1 file changed +28
-13
lines changed Original file line number Diff line number Diff line change 1
- name : Validate JSON
1
+ name : Auto Logo Deploy
2
2
3
3
on :
4
- pull_request :
5
- paths :
6
- - ' **/*.json '
4
+ push :
5
+ branches : [main]
6
+ workflow_dispatch :
7
7
8
8
jobs :
9
- validate :
10
- runs-on : ubuntu-latest
9
+ deploy-logo :
10
+ runs-on : self-hosted
11
+
11
12
steps :
12
- - uses : actions/checkout@v3
13
- - name : Validate JSON files
14
- run : |
15
- for file in $(find . -name "*.json"); do
16
- echo "Validating $file"
17
- jq . "$file" > /dev/null || exit 1
18
- done
13
+ - name : Checkout repo
14
+ uses : actions/checkout@v3
15
+
16
+ - name : Set up Git
17
+ run : |
18
+ git config --global user.name "NH/NNT Bot"
19
+ git config --global user.email "[email protected] "
20
+
21
+ - name : Copy logo and metadata
22
+ run : |
23
+ mkdir -p ./assets/polygon
24
+ cp ./logo/nhnnt.png ./assets/polygon/nhnnt.png
25
+ cp ./metadata/nhnnt.json ./assets/polygon/nhnnt.json
26
+
27
+ - name : Commit changes
28
+ run : |
29
+ git add ./assets/polygon/nhnnt.*
30
+ git commit -m "Auto-deploy NH/NNT logo and metadata [skip ci]" || echo "No changes to commit"
31
+
32
+ - name : Push to main
33
+ run : git push origin main
You can’t perform that action at this time.
0 commit comments