From 08d94c6ca1c9d32e866ddb7d0c553cd50150e015 Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Tue, 22 Nov 2022 11:12:06 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Add=20build=20theme=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-theme.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/build-theme.yml diff --git a/.github/workflows/build-theme.yml b/.github/workflows/build-theme.yml new file mode 100644 index 0000000..81fa9c3 --- /dev/null +++ b/.github/workflows/build-theme.yml @@ -0,0 +1,25 @@ +name: Build Theme + +on: [pull_request_target] + +jobs: + build: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: "${{ github.head_ref }}" + - name: Install dependencies and Build Theme + uses: actions/setup-node@v3 + - run: npm install + - run: npm run build + - name: Commit CSS changes + uses: stefanzweifel/git-auto-commit-action@v4 + with: + branch: "${{ github.head_ref }}" + push_options: "--dry-run" + file_pattern: "assets/css/compiled/main.css" + commit_message: "💄 Rebuild CSS" + - run: git push