Skip to content

Commit

Permalink
Add git push
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor authored Aug 14, 2024
1 parent 7d5bd92 commit 5b69cb3
Showing 1 changed file with 40 additions and 27 deletions.
67 changes: 40 additions & 27 deletions .github/workflows/build_commit_web.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,48 @@
name: Make web and commit

on:
workflow_dispatch:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive

- name: Make Web
run: make web

- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "SciLor"
- name: Git status tonies-ota-backup
run: |
git status
- name: Commit and push if changed tonies-ota-backup
run: |
if [[ -n $(git status --porcelain) ]]; then
git add .
git commit -m "Update webinterface"
git pull --rebase
else
echo "No changes to commit and push."
fi
- name: Checkout code
uses: actions/checkout@v3
with:
submodules: recursive

- name: Update teddycloud_web submodule
run: git submodule update --remote teddycloud_web

- 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: Git status
run: |
git status
- 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

0 comments on commit 5b69cb3

Please sign in to comment.