Skip to content

Commit

Permalink
Give the new SQLite Integration GitHub workflow a proper name instead…
Browse files Browse the repository at this point in the history
… of duplicating the "Recompile WordPress" name
  • Loading branch information
adamziel authored May 21, 2024
1 parent 1a2956c commit 90d6dc2
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/refresh-sqlite-integration.yml
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 * * * *'
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 90d6dc2

Please sign in to comment.