-
Notifications
You must be signed in to change notification settings - Fork 35
52 lines (42 loc) · 1.18 KB
/
build_commit_web.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Make web and commit
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: recursive
# - name: Update teddycloud_web submodule
# run: git submodule update --remote teddycloud_web
- name: Git status
run: |
git status
cd teddycloud_web
git status
cd ..
- uses: actions/setup-node@v4
with:
node-version: "20.11.1"
- name: Install NPM version
run: npm install -g [email protected]
- name: Disable CI checks
run: echo "CI=false" >> $GITHUB_ENV
- name: Make Web
run: make web
- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "SciLor"
- name: Commit and push if changed
run: |
if [[ -n $(git status --porcelain) ]]; then
git add .
git commit -m "Update frontend (make web)"
git pull --rebase
git push
else
echo "No changes to commit and push."
fi