From f9a403aba908a7f1b1aa908140768ab8402a5b1e Mon Sep 17 00:00:00 2001 From: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Date: Sun, 2 Nov 2025 15:36:52 +0100 Subject: [PATCH 1/2] chore: add Renovate rebuild action workflow --- .github/workflows/rebuild-dist.yml | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/rebuild-dist.yml diff --git a/.github/workflows/rebuild-dist.yml b/.github/workflows/rebuild-dist.yml new file mode 100644 index 000000000..2a18bd506 --- /dev/null +++ b/.github/workflows/rebuild-dist.yml @@ -0,0 +1,41 @@ +name: Rebuild Action after Renovate PR +# cypress-io/github-action runs from the dist/ directory +# After Renovate has created a PR that updates dependencies, +# the built action in dist/ will be out of date. +# This workflow ensures that the contents of this directory +# are in sync with the source files by using +# npm run build which in turn calls ncc build to rebuild +# the dist/ directory +on: + pull_request: + branches: + - 'master' + +jobs: + rebuild-dist: + if: startsWith(github.head_ref, 'renovate/') + runs-on: ubuntu-24.04 + permissions: + contents: write + + steps: + - name: Checkout + uses: actions/checkout@v5 # https://github.com/actions/checkout + with: + ref: ${{ github.head_ref }} + - name: Setup Node + uses: actions/setup-node@v4 # https://github.com/actions/setup-node + with: + # Action runs: using: node20 as defined in + # https://github.com/cypress-io/github-action/blob/master/action.yml + # Node.js minor version is aligned to + # https://github.com/actions/runner/blob/main/src/Misc/externals.sh + node-version: 20.19.5 + - run: npm ci + - run: npm run format + - run: npm run build + + - uses: stefanzweifel/git-auto-commit-action@v7 # https://github.com/stefanzweifel/git-auto-commit-action + with: + commit_message: "chore: rebuild action after dependency update" + file_pattern: 'dist/*' From f84271acbc4d51ca42bb7e7d5422899c2936307d Mon Sep 17 00:00:00 2001 From: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Date: Mon, 3 Nov 2025 16:38:48 +0100 Subject: [PATCH 2/2] fix linting (single quotes) --- .github/workflows/rebuild-dist.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rebuild-dist.yml b/.github/workflows/rebuild-dist.yml index 2a18bd506..3554b5ed8 100644 --- a/.github/workflows/rebuild-dist.yml +++ b/.github/workflows/rebuild-dist.yml @@ -37,5 +37,5 @@ jobs: - uses: stefanzweifel/git-auto-commit-action@v7 # https://github.com/stefanzweifel/git-auto-commit-action with: - commit_message: "chore: rebuild action after dependency update" + commit_message: 'chore: rebuild action after dependency update' file_pattern: 'dist/*'