-
-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the replace versions workflow and add support for setting mini…
…mum MySQL constant too
- Loading branch information
1 parent
e088187
commit 48a3f77
Showing
1 changed file
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
name: WordPress.org Replace Strings | ||
name: WordPress.org Update Versions | ||
env: | ||
WPORG_PLUGIN_FILE: 'init.php' | ||
WPORG_PLUGIN_VERSION_CONSTANT_NAME: 'PODS_VERSION' | ||
WPORG_MINIMUM_WP_VERSION_CONSTANT_NAME: 'PODS_WP_VERSION_MINIMUM' | ||
WPORG_MINIMUM_PHP_VERSION_CONSTANT_NAME: 'PODS_PHP_VERSION_MINIMUM' | ||
WPORG_MINIMUM_MYSQL_VERSION_CONSTANT_NAME: 'PODS_MYSQL_VERSION_MINIMUM' | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
|
@@ -19,6 +20,9 @@ on: | |
minimum_php_version: | ||
description: 'Minimum PHP version' | ||
required: false | ||
minimum_mysql_version: | ||
description: 'Minimum MySQL version' | ||
required: false | ||
jobs: | ||
wporg_replace: | ||
runs-on: ubuntu-latest | ||
|
@@ -29,10 +33,11 @@ jobs: | |
echo tested_wp_version: ${{ github.event.inputs.tested_wp_version }} | ||
echo minimum_wp_version: ${{ github.event.inputs.minimum_wp_version }} | ||
echo minimum_php_version: ${{ github.event.inputs.minimum_php_version }} | ||
echo minimum_mysql_version: ${{ github.event.inputs.minimum_mysql_version }} | ||
- name: Checkout the code | ||
uses: actions/checkout@v4 | ||
- name: Run wporg-replace | ||
uses: sc0ttkclark/[email protected].6 | ||
uses: sc0ttkclark/[email protected].7 | ||
with: | ||
plugin_version: ${{ github.event.inputs.plugin_version }} | ||
plugin_version_constant_name: ${{ env.WPORG_PLUGIN_VERSION_CONSTANT_NAME }} | ||
|
@@ -42,6 +47,8 @@ jobs: | |
minimum_wp_version_constant_name: ${{ env.WPORG_MINIMUM_WP_VERSION_CONSTANT_NAME }} | ||
minimum_php_version: ${{ github.event.inputs.minimum_php_version }} | ||
minimum_php_version_constant_name: ${{ env.WPORG_MINIMUM_PHP_VERSION_CONSTANT_NAME }} | ||
minimum_mysql_version: ${{ github.event.inputs.minimum_mysql_version }} | ||
minimum_mysql_version_constant_name: ${{ env.WPORG_MINIMUM_MYSQL_VERSION_CONSTANT_NAME }} | ||
plugin_file: ${{ env.WPORG_PLUGIN_FILE }} | ||
plugin_path: ${{ github.workspace }} | ||
- name: Commit changes | ||
|