mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
name: Sync Configuration Files
|
|
|
|
on:
|
|
workflow_dispatch: # manual also
|
|
repository_dispatch:
|
|
types: [sync-configuration]
|
|
|
|
jobs:
|
|
sync:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
repository-projects: write
|
|
steps:
|
|
- name: Checkout OpenPanel Repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: stefanpejcic/OpenPanel
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
path: openpanel
|
|
|
|
- name: Checkout OpenPanel-Configuration Repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
repository: stefanpejcic/OpenPanel-configuration
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
path: configuration-repo
|
|
|
|
- name: Sync Configuration Directory
|
|
run: |
|
|
rsync -av --delete configuration-repo/ openpanel/configuration/
|
|
cd openpanel
|
|
git config user.name github-actions
|
|
git config user.email github-actions@github.com
|
|
git add .
|
|
git commit -m "Sync configuration from stefanpejcic/OpenPanel-configuration"
|
|
git push
|