-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (38 loc) · 1.08 KB
/
sync-install-script.yml
File metadata and controls
43 lines (38 loc) · 1.08 KB
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
name: Sync install.sh to website
on:
push:
branches:
- main
release:
types:
- published
jobs:
sync-install:
runs-on: ubuntu-latest
if: github.repository == 'blockopsnetwork/ponos' && github.actor != 'dependabot[bot]'
permissions:
contents: read
steps:
- name: Checkout ponos
uses: actions/checkout@v4
- name: Checkout website repo
uses: actions/checkout@v4
with:
repository: blockops-sh/nodeoperator-ai-client
token: ${{ secrets.NODEOPERATOR_SITE_TOKEN }}
path: site
- name: Copy install script
run: |
cp scripts/install.sh site/public/install.sh
- name: Commit and push if changed
run: |
cd site
if [ -n "$(git status --porcelain)" ]; then
git add public/install.sh
git config user.name "nodeoperator-ci"
git config user.email "ci@nodeoperator.ai"
git commit -m "chore: sync install.sh"
git push
else
echo "No changes to commit"
fi