-
-
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 auto-build to reference wporg-update-versions action
- Loading branch information
1 parent
d3361ac
commit 9d5aabe
Showing
1 changed file
with
3 additions
and
15 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,7 +1,4 @@ | ||
name: 'Auto Build' | ||
env: | ||
WPORG_PLUGIN_FILE: 'init.php' | ||
WPORG_PLUGIN_VERSION_CONSTANT_NAME: 'PODS_VERSION' | ||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
|
@@ -34,18 +31,9 @@ jobs: | |
- name: Install dependencies | ||
run: npm install | ||
- name: Maybe build Pods Blocks JS API, Pods DFV, and styles assets | ||
run: npm run build-production | ||
- name: Check the version number | ||
shell: bash | ||
run: echo "PLUGIN_VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV | ||
- name: Run wporg-replace | ||
uses: sc0ttkclark/[email protected] | ||
with: | ||
plugin_version: ${{ env.PLUGIN_VERSION }} | ||
plugin_version_constant_name: ${{ env.WPORG_PLUGIN_VERSION_CONSTANT_NAME }} | ||
plugin_file: ${{ env.WPORG_PLUGIN_FILE }} | ||
plugin_path: ${{ github.workspace }} | ||
- name: Run wporg-update-versions for package.json version change | ||
uses: ./.github/actions/wporg-update-versions | ||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
file_pattern: ui/js/blocks/pods-blocks-api.min.* ui/js/dfv/pods-dfv.min.* ui/styles/dist/*.css readme.txt ${{ env.WPORG_PLUGIN_FILE }} | ||
file_pattern: ui/js/blocks/pods-blocks-api.min.* ui/js/dfv/pods-dfv.min.* ui/styles/dist/*.css | ||
commit_message: Auto rebuild assets |