-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (34 loc) · 1.1 KB
/
commit.yaml
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
name: explorer.nodex.one
on:
push:
branches:
- master
jobs:
commit:
name: Chains merge
runs-on: ubuntu-latest
steps:
- name: Git Checkout Latest
uses: actions/checkout@v3
with:
token: ${{ secrets.ACCESS_TOKEN }}
- name: Fetch last commit
shell: bash
run: |
echo "latestcommit=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: Clone nodexplorer
run: |
git clone https://x-access-token:${{ secrets.ACCESS_TOKEN }}@github.com/nodexemperor/nodexplorer
- name: Setup config
shell: bash
run: |
rm -rf nodexplorer/chains/*
cp -rf chains/* nodexplorer/chains/
- name: Setup logos
run: cp -rf logos nodexplorer/public/
- name: Update commit nodexplorer
run: |
cd nodexplorer
git config --global user.name "Salman Wahib"
git config --global user.email "[email protected]"
git add . && git commit -am "chains: merge with https://github.com/nodexemperor/explorer.nodex.one/commit/${{ env.latestcommit }}" -s && git push || echo "No changes to commit"