From fd5adc843dd1afe1404d686be0f88edf20af284b Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Mon, 14 Nov 2022 14:05:50 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Add=20workflow=20to=20build=20th?= =?UTF-8?q?eme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-theme.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 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 00000000..02392d16 --- /dev/null +++ b/.github/workflows/build-theme.yml @@ -0,0 +1,30 @@ +name: Build Theme + +on: + pull_request_target: + types: [opened, edited] + branches: + - "dependabot/*" + +jobs: + build: + runs-on: ubuntu-latest + if: github.actor == 'dependabot[bot]' || github.event.sender.login == 'dependabot[bot]' + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install dependencies and Build Theme + uses: actions/setup-node@v3 + - run: npm install + - run: npm run build + - name: Commit and push CSS changes + uses: devops-infra/action-commit-push@master + with: + github_token: "${{ secrets.GITHUB_TOKEN }}" + commit_message: "💄 Rebuild CSS" + - run: npm run assets + - name: Commit and push vendor changes + uses: devops-infra/action-commit-push@master + with: + github_token: "${{ secrets.GITHUB_TOKEN }}" + commit_message: "📦 Update packaged assets"