mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update sync-configuration.yml
This commit is contained in:
parent
088f3261cd
commit
82946368a2
16
.github/workflows/sync-configuration.yml
vendored
16
.github/workflows/sync-configuration.yml
vendored
@ -1,7 +1,7 @@
|
|||||||
name: Sync Configuration Files
|
name: Sync Configuration Files
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # manual also
|
workflow_dispatch: # manual trigger
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
types: [sync-configuration]
|
types: [sync-configuration]
|
||||||
|
|
||||||
@ -30,9 +30,19 @@ jobs:
|
|||||||
- name: Sync Configuration Directory
|
- name: Sync Configuration Directory
|
||||||
run: |
|
run: |
|
||||||
rsync -av --delete configuration-repo/ openpanel/configuration/
|
rsync -av --delete configuration-repo/ openpanel/configuration/
|
||||||
|
|
||||||
|
- name: Set up Git for commit signing
|
||||||
|
run: |
|
||||||
|
git config --global user.name "github-actions"
|
||||||
|
git config --global user.email "github-actions@github.com"
|
||||||
|
git config --global commit.gpgSign true
|
||||||
|
git config --global user.signingkey ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Commit and push changes
|
||||||
|
run: |
|
||||||
cd openpanel
|
cd openpanel
|
||||||
git config user.name github-actions
|
|
||||||
git config user.email github-actions@github.com
|
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Sync configuration from stefanpejcic/OpenPanel-configuration"
|
git commit -m "Sync configuration from stefanpejcic/OpenPanel-configuration"
|
||||||
git push
|
git push
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Loading…
Reference in New Issue
Block a user