Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DEPS] Update Deps to WP 6.7 #706

Merged
merged 1 commit into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

# Which version of PHP would you like to use? The major and minor version needed only, e.g. 8.2 or 8.3.
PHP_VERSION=${PHP_VERSION}
WORDPRESS_VERSION=${WORDPRESS_VERSION}

# A docker network is required to ensure the loopback works as expected among other things.
DOCKER_NETWORK_NAME=${DOCKER_NETWORK_NAME}
Expand Down
25 changes: 8 additions & 17 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ updates:
open-pull-requests-limit: 10
commit-message:
prefix: "[DEPS]"
ignore:
- dependency-name: "@wordpress/*"
- dependency-name: "react"
- dependency-name: "react-dom"


# Docker app image.
Expand Down Expand Up @@ -79,9 +83,7 @@ updates:
open-pull-requests-limit: 10
commit-message:
prefix: "[SETUP]"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]

# Docker database image.
- package-ecosystem: docker
directory: "/docker/database"
Expand All @@ -91,21 +93,16 @@ updates:
open-pull-requests-limit: 10
commit-message:
prefix: "[SETUP]"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
# Docker mailhog image.

# Docker mailpit image.
- package-ecosystem: docker
directory: "/docker/mailhog"
directory: "/docker/mailpit"
registries: "*"
schedule:
interval: daily
open-pull-requests-limit: 10
commit-message:
prefix: "[SETUP]"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
# Docker memcached image.
- package-ecosystem: docker
directory: "/docker/memcached"
Expand All @@ -115,9 +112,6 @@ updates:
open-pull-requests-limit: 10
commit-message:
prefix: "[SETUP]"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
# Docker nginx image.
- package-ecosystem: docker
directory: "/docker/nginx"
Expand All @@ -127,6 +121,3 @@ updates:
open-pull-requests-limit: 10
commit-message:
prefix: "[SETUP]"
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-major"]
51 changes: 0 additions & 51 deletions .github/deploy-git/action.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/update-wp-deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Update WP Deps

on:
schedule:
- cron: '0 3 * * *'
workflow_dispatch:

jobs:
update-deps:
runs-on: ubuntu-latest
steps:
# Setup
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
# Read the current WP version from the `roots/wordpress-full` package in `composer.lock`, and save it to the environment with just the major and minor version.
- name: Read WP version
run: echo "WP_VERSION=$(jq -r '.packages[] | select(.name == "roots/wordpress-no-content") | .version' composer.lock | cut -d '.' -f 1,2)" >> $GITHUB_ENV
- name: Run Update
uses: boxuk/wp-deps-auto-update@main
with:
WP_VERSION: ${{ env.WP_VERSION }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
22
3 changes: 2 additions & 1 deletion bin/install
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ set -e
export PROJECT_NAME="boxuk-wp-skeleton"
export DOCKER_NETWORK_NAME="boxuk-docker"
export PHP_VERSION="8.2"
export WORDPRESS_VERSION="6.7"

GREEN='\033[0;32m'
BG_GREEN='\033[42m'
Expand Down Expand Up @@ -48,7 +49,7 @@ echo -e "Using ${GREEN}${PROJECT_NAME}${NC} for PROJECT_NAME";
echo -e "Using ${GREEN}${DOCKER_NETWORK_NAME}${NC} for DOCKER_NETWORK_NAME";
echo -e "Using ${GREEN}${PHP_VERSION}${NC} for PHP_VERSION";

envsubst \$PROJECT_NAME,\$DOCKER_NETWORK_NAME,\$PHP_VERSION < .env.dist > .env
envsubst \$PROJECT_NAME,\$DOCKER_NETWORK_NAME,\$PHP_VERSION,\$WORDPRESS_VERSION < .env.dist > .env
envsubst \$PROJECT_NAME < ./docker/app/.env.dist > ./docker/app/.env
cp ./docker/blackfire/.env.dist ./docker/blackfire/.env

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"inpsyde/wp-translation-downloader": "^2.5",
"jamesrwilliams/flagpole": "@beta",
"oomphinc/composer-installers-extender": "^2",
"roots/wordpress-core-installer": "^1.100",
"roots/wordpress-full": "^6.4",
"roots/wordpress-core-installer": "^2.0",
"roots/wordpress-no-content": "^6.4",
"symfony/config": "^6.0 || ^7.0",
"symfony/dependency-injection": "^6.0 || ^7.0",
"symfony/dotenv": "^6.0 || ^7.0",
Expand Down
Loading
Loading