Skip to content
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
2 changes: 1 addition & 1 deletion .github/files/test-plugin-update/prepare-zips.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ while IFS=$'\t' read -r SRC MIRROR SLUG; do
echo "::endgroup::"

echo "::group::Fetching $SLUG-trunk.zip..."
BETASLUG="$(jq -r '.extra["beta-plugin-slug"] // .extra["wp-plugin-slug"] // ""' "monorepo/$SRC/composer.json")"
BETASLUG="$(jq -r '.extra["beta-plugin-slug"] // .extra["wp-plugin-slug"] // ""' "commit/$SRC/composer.json")"
if [[ -z "$BETASLUG" ]]; then
echo "No beta-plugin-slug or wp-plugin-slug in composer.json, skipping"
else
Expand Down
2 changes: 1 addition & 1 deletion .github/files/test-plugin-update/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ echo "::group::Install WordPress"
wp --allow-root core install --url="$WP_DOMAIN" --title="$WP_TITLE" --admin_user="$WP_ADMIN_USER" --admin_password="$WP_ADMIN_PASSWORD" --admin_email="$WP_ADMIN_EMAIL" --skip-email
rm -f index.html
mkdir -p wp-content/mu-plugins
cp "$GITHUB_WORKSPACE/monorepo/.github/files/test-plugin-update/mu-plugin.php" wp-content/mu-plugins/hack.php
cp "$GITHUB_WORKSPACE/trunk/.github/files/test-plugin-update/mu-plugin.php" wp-content/mu-plugins/hack.php
echo "::endgroup::"
2 changes: 1 addition & 1 deletion .github/files/test-plugin-update/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -eo pipefail

source "$GITHUB_WORKSPACE/monorepo/.github/files/gh-funcs.sh"
source "$GITHUB_WORKSPACE/trunk/.github/files/gh-funcs.sh"

ZIPDIR="$GITHUB_WORKSPACE/zips"
EXIT=0
Expand Down
18 changes: 11 additions & 7 deletions .github/workflows/post-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,15 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
path: monorepo
path: trunk
- uses: actions/checkout@v3
with:
ref: ${{ github.event.workflow_run.head_commit.id }}
path: commit

- name: Get token
id: get_token
uses: ./monorepo/.github/actions/gh-app-token
uses: ./trunk/.github/actions/gh-app-token
env:
# Work around a weird node 16/openssl 3 issue in the docker env
OPENSSL_CONF: '/dev/null'
Expand All @@ -221,7 +225,7 @@ jobs:
private_key: ${{ secrets.JP_LAUNCH_CONTROL_KEY }}

- name: Notify check in progress
uses: ./monorepo/.github/actions/check-run
uses: ./trunk/.github/actions/check-run
with:
id: ${{ needs.setup.outputs.upgrade_check }}
status: in_progress
Expand Down Expand Up @@ -255,19 +259,19 @@ jobs:
tar --xz -xvvf build.tar.xz

- name: Setup WordPress
run: monorepo/.github/files/test-plugin-update/setup.sh
run: trunk/.github/files/test-plugin-update/setup.sh

- name: Prepare plugin zips
id: zips
run: monorepo/.github/files/test-plugin-update/prepare-zips.sh
run: trunk/.github/files/test-plugin-update/prepare-zips.sh

- name: Test upgrades
id: tests
run: monorepo/.github/files/test-plugin-update/test.sh
run: trunk/.github/files/test-plugin-update/test.sh

- name: Notify final status
if: always()
uses: ./monorepo/.github/actions/check-run
uses: ./trunk/.github/actions/check-run
with:
id: ${{ needs.setup.outputs.upgrade_check }}
conclusion: ${{ job.status }}
Expand Down