Skip to content
Merged
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
12 changes: 12 additions & 0 deletions .github/workflows/generate-wp-functions-since-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,22 @@ jobs:
- name: Checkout plugin-check
uses: actions/checkout@v6

- name: Resolve latest stable WordPress version
id: wp
run: |
VERSION=$(curl -fsSL 'https://api.wordpress.org/core/version-check/1.7/' | jq -r '.offers[0].version')
Comment thread
ernilambar marked this conversation as resolved.
if [ -z "$VERSION" ] || [ "$VERSION" = "null" ]; then
echo "::error::Failed to resolve WordPress version from API"
exit 1
fi
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
echo "Using WordPress $VERSION (latest stable from WordPress.org)"

- name: Checkout WordPress core
uses: actions/checkout@v6
with:
repository: WordPress/WordPress
ref: ${{ steps.wp.outputs.version }}
path: wordpress-core

- name: Set up PHP
Expand Down