Skip to content

Commit 754c2d0

Browse files
Update pr_tests.yml
Auto-deploy NH/NNT logo and metadata to Polygon token list [skip ci]
1 parent d2c59a3 commit 754c2d0

File tree

1 file changed

+28
-13
lines changed

1 file changed

+28
-13
lines changed

.github /workflows/pr_tests.yml

Lines changed: 28 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,33 @@
1-
name: Validate JSON
1+
name: Auto Logo Deploy
22

33
on:
4-
pull_request:
5-
paths:
6-
- '**/*.json'
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
77

88
jobs:
9-
validate:
10-
runs-on: ubuntu-latest
9+
deploy-logo:
10+
runs-on: self-hosted
11+
1112
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

0 commit comments

Comments
 (0)