-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Give the new SQLite Integration GitHub workflow a proper name instead…
… of duplicating the "Recompile WordPress" name
- Loading branch information
Showing
1 changed file
with
4 additions
and
11 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,12 +1,7 @@ | ||
name: 'Refresh WordPress Major&Beta' | ||
name: 'Refresh SQLite plugin' | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
force_rebuild: | ||
description: 'Force rebuild of WordPress (true/false)' | ||
required: false | ||
default: 'false' | ||
# Every 20 minutes | ||
schedule: | ||
- cron: '*/20 * * * *' | ||
|
@@ -34,10 +29,8 @@ jobs: | |
clean: true | ||
persist-credentials: false | ||
- uses: ./.github/actions/prepare-playground | ||
- name: 'Recompile WordPress' | ||
- name: 'Refresh the SQLite bundle' | ||
shell: bash | ||
env: | ||
FORCE_REBUILD: ${{ github.event.inputs.force_rebuild }} | ||
run: npx nx bundle-sqlite-database playground-wordpress-builds | ||
- name: Check for uncommitted changes | ||
id: changes | ||
|
@@ -49,14 +42,14 @@ jobs: | |
echo "Changes detected" | ||
echo 'CHANGES=1' >> $GITHUB_OUTPUT | ||
fi | ||
- name: Push rebuilt WordPress to GitHub | ||
- name: Push changes to GitHub | ||
if: steps.changes.outputs.CHANGES == '1' | ||
run: | | ||
git config --global user.name "deployment_bot" | ||
git config --global user.email "[email protected]" | ||
git remote set-url origin https://${{ secrets.GH_ACTOR }}:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }} | ||
git add -A | ||
git commit -a -m "Recompile WordPress major and beta versions" | ||
git commit -a -m "Refresh SQLite integration plugin" | ||
git pull --rebase | ||
# Push if the pull did not result in a conflict | ||
if [ $? -eq 0 ]; then | ||
|