diff --git a/.github/workflows/fullBuild.yml b/.github/workflows/fullBuild.yml index 828ac83..1d20917 100644 --- a/.github/workflows/fullBuild.yml +++ b/.github/workflows/fullBuild.yml @@ -1,5 +1,9 @@ name: Build and Push To Full Build branch -on: [push, workflow_dispatch] +on: + push: + branches: + - full-build + workflow_dispatch: jobs: build: name: Build and Push To Full Build branch @@ -11,10 +15,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 + with: + ref: full-build - name: Submodule Update run: git submodule update --init --recursive - - name: Checkout Full Build Branch - run: git checkout full-build - name: Setup Node uses: actions/setup-node@v3 with: @@ -24,7 +28,7 @@ jobs: with: ruby-version: '3.2.2' - name: Install other things - run: apt-get install -y build-essential libpq-dev + run: sudo apt update && sudo apt install -y build-essential libpq-dev - name: Install PNPM run: npm install -g pnpm - name: Install @@ -35,8 +39,8 @@ jobs: make - name: Commit to branch run: | - git config --global user.email "actions@github.com" - git config --global user.name "GitHub Actions" + git config user.name github-actions + git config user.email github-actions@github.com git add . - git commit -m "Build" - git push origin full-build + git commit -m "Build from Github Actions" + git push diff --git a/src/public/js/updates.js b/src/public/js/updates.js index 6f9defa..70b0270 100644 --- a/src/public/js/updates.js +++ b/src/public/js/updates.js @@ -5,6 +5,7 @@ function getLatestRelease() { if (userVersion != data.version || userVersion == null || userVersion == undefined) { localStorage.setItem('updated', true); localStorage.setItem('version', data.version); + console.log("Updated to version " + data.version); } }); }