-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow for updating Post45 theme
- Loading branch information
1 parent
cee7549
commit b6ba3a6
Showing
1 changed file
with
20 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Update Post45 Theme Submodule | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'plugins/themes/post45/**' | ||
workflow_dispatch: # Add this line to allow manual triggering | ||
|
||
jobs: | ||
update-submodule: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Run git pull on Azure Web App via Kudu API | ||
env: | ||
KUDU_API: https://${{ env.AZURE_WEBAPP_NAME }}.scm.azurewebsites.net/api/command | ||
KUDU_USER: ${{ env.AZURE_WEBAPP_NAME }} | ||
KUDU_PASS: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }} | ||
run: | | ||
curl -u $KUDU_USER:$KUDU_PASS -X POST -d '{"command": "cd /var/www/html/plugins/themes/post45 && git pull origin main"}' -H "Content-Type: application/json" $KUDU_API |