-
Notifications
You must be signed in to change notification settings - Fork 17
37 lines (31 loc) · 906 Bytes
/
random.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
name: Autojson random
on:
workflow_dispatch:
push:
branches:
- random
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: random
- name: Grant execute permission for script
run: chmod +x *.sh
- name: Generate JSON file
run: ./pif.sh
- name: Check differences in chiteroman.json
run: |
if git diff --exit-code chiteroman.json; then
echo "chiteroman.json is the same, no need to commit."
else
git config --global user.name "daboynb"
git config --global user.email "[email protected]"
git add chiteroman.json
git add osmosis.json
git add device_osmosis.json
git commit -m "Update pif.json"
git push
fi