From bb34b32b568b6108c90dc2c25ac6297c1f6b91f4 Mon Sep 17 00:00:00 2001 From: Matt P <5638426+mattbruv@users.noreply.github.com> Date: Tue, 23 Jul 2024 17:16:28 -0500 Subject: [PATCH] workflow change --- .github/workflows/build.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index da26973e..ffea08ee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -89,6 +89,8 @@ jobs: website: runs-on: ubuntu-latest + permissions: + contents: write needs: build if: github.ref == 'refs/heads/main' steps: @@ -118,3 +120,20 @@ jobs: folder: dist # The folder the action should deploy. clean: true single-commit: true + + - name: Commit Changes + continue-on-error: true + run: | + git status + git pull + git config --global user.name "BFBB Actions Bot" + git config --global user.email "actions@github.com" + git add . + git commit -m "automated commit cache update" + + - name: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + repository: bfbbdecomp/website + branch: ${{ github.ref }}