Skip to content

Commit

Permalink
Update auto-build to reference wporg-update-versions action
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark committed Dec 11, 2023
1 parent d3361ac commit 9d5aabe
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/auto-build.yml
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:
Expand Down Expand Up @@ -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

0 comments on commit 9d5aabe

Please sign in to comment.