From 3b94e5213ab777f02aea950e651dbbb56c4f5b7f Mon Sep 17 00:00:00 2001 From: Alex Worrad-Andrews Date: Tue, 9 Jun 2026 19:52:28 +0100 Subject: [PATCH 1/3] Make deploy workflow valid so it stops failing every push The deploy job had all its steps commented out, which makes the workflow file invalid. GitHub can't parse an invalid workflow to evaluate its branch filter, so every push to any branch logged an instant failed run. Add a placeholder step so the file parses; the Kinsta template steps stay commented below it. --- .github/workflows/deploy.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8f4dfd7..9d3651a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,8 +9,12 @@ jobs: deploy: runs-on: ubuntu-latest - # Uncomment the following for a standard deployment to Kinsta - # steps: + # Replace this placeholder with the commented steps below for a + # standard deployment to Kinsta + steps: + - name: Deployment not configured + run: echo "Deployment is not configured. Replace this step with the commented Kinsta steps in this file." + # - name: Checkout code # uses: actions/checkout@v4 # - name: Set up SSH From de5b136449c9baa16677eb0074192c7fab3b0c91 Mon Sep 17 00:00:00 2001 From: Alex Worrad-Andrews Date: Tue, 9 Jun 2026 19:52:44 +0100 Subject: [PATCH 2/3] Run CI workflows once per change instead of twice Triggering on both push and pull_request ran every job twice for each commit on a PR branch. Trigger on pushes to main and on pull requests instead, so each change is checked exactly once. --- .github/workflows/ci.yml | 6 +++++- .github/workflows/push.yml | 6 +++++- .github/workflows/theme.yml | 6 +++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f3dbf7e..71232cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,10 @@ name: CI -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: jobs: build: diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 732b371..9062b40 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -1,5 +1,9 @@ name: Check Docker Compose development environment -on: push +on: + push: + branches: + - main + pull_request: jobs: test: runs-on: ubuntu-latest diff --git a/.github/workflows/theme.yml b/.github/workflows/theme.yml index ed11e79..72ce3b5 100644 --- a/.github/workflows/theme.yml +++ b/.github/workflows/theme.yml @@ -1,6 +1,10 @@ name: Theme build -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: jobs: build: From 7576ace5ddab59ecb1f9a01ba11ad0ecee3ee6c8 Mon Sep 17 00:00:00 2001 From: Alex Worrad-Andrews Date: Wed, 10 Jun 2026 09:47:05 +0100 Subject: [PATCH 3/3] Align GitHub Actions on their latest majors checkout v5 -> v6 in the theme and docker-compose workflows to match ci.yml, setup-node v4 -> v6 in the theme build, and the commented Kinsta template steps now reference checkout v6 and ssh-agent v0.10.0. cache, setup-php and php-actions/composer are already current. --- .github/workflows/deploy.yml | 4 ++-- .github/workflows/push.yml | 2 +- .github/workflows/theme.yml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9d3651a..7a94cc8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,9 +16,9 @@ jobs: run: echo "Deployment is not configured. Replace this step with the commented Kinsta steps in this file." # - name: Checkout code - # uses: actions/checkout@v4 + # uses: actions/checkout@v6 # - name: Set up SSH - # uses: webfactory/ssh-agent@v0.9.0 + # uses: webfactory/ssh-agent@v0.10.0 # with: # ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index 9062b40..361a8ae 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Install Composer dependencies uses: php-actions/composer@v6 diff --git a/.github/workflows/theme.yml b/.github/workflows/theme.yml index 72ce3b5..22ea61a 100644 --- a/.github/workflows/theme.yml +++ b/.github/workflows/theme.yml @@ -13,10 +13,10 @@ jobs: run: working-directory: web/app/themes/wordpress-starter-template steps: - - uses: actions/checkout@v5 + - uses: actions/checkout@v6 - name: Setup Node - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: node-version-file: web/app/themes/wordpress-starter-template/.nvmrc cache: npm