Skip to content

Commit

Permalink
Merge branch 'main' into feature/support-disabling-quick-edit
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark authored Dec 7, 2023
2 parents 4130b86 + 4e6e588 commit fabc03c
Show file tree
Hide file tree
Showing 36 changed files with 1,347 additions and 499 deletions.
7 changes: 0 additions & 7 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
# These are supported funding model platforms

github: pods-framework, sc0ttkclark # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: https://friends.pods.io # Replace with a single custom sponsorship URL
57 changes: 57 additions & 0 deletions .github/workflows/wporg-replace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: WordPress.org Replace Strings
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'
on:
workflow_dispatch:
inputs:
plugin_version:
description: 'Plugin version'
required: false
tested_wp_version:
description: 'Tested up to WP version'
required: false
minimum_wp_version:
description: 'Minimum WP version'
required: false
minimum_php_version:
description: 'Minimum PHP version'
required: false
jobs:
prepare_release:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: What are we doing?
run: |
echo plugin_version: ${{ github.event.inputs.plugin_version }}
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 }}
- name: Run wporg-replace
uses: sc0ttkclark/[email protected]
with:
plugin_version: ${{ github.event.inputs.plugin_version }}
plugin_version_constant_name: ${{ env.WPORG_PLUGIN_VERSION_CONSTANT_NAME }}
tested_wp_version: ${{ github.event.inputs.tested_wp_version }}
tested_wp_version_constant_name: ${{ env.WPORG_TESTED_WP_VERSION_CONSTANT_NAME }}
minimum_wp_version: ${{ github.event.inputs.minimum_wp_version }}
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 }}
plugin_file: ${{ env.WPORG_PLUGIN_FILE }}
plugin_path: ${{ github.workspace }}
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
file_pattern: ${{ env.WPORG_PLUGIN_FILE }} readme.txt package.json
commit_message: Update wporg version(s)
- name: "Run if changes have been detected"
if: steps.auto-commit-action.outputs.changes_detected == 'true'
run: echo "Changes!"
- name: "Run if no changes have been detected"
if: steps.auto-commit-action.outputs.changes_detected == 'false'
run: echo "No Changes!"
Loading

0 comments on commit fabc03c

Please sign in to comment.