From 82946368a24bb9b2a0e0f99e6b4ed8d6160f0ed9 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Tue, 3 Dec 2024 10:30:34 +0100 Subject: [PATCH] Update sync-configuration.yml --- .github/workflows/sync-configuration.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sync-configuration.yml b/.github/workflows/sync-configuration.yml index 1a7b2b09..4b4f2a8a 100644 --- a/.github/workflows/sync-configuration.yml +++ b/.github/workflows/sync-configuration.yml @@ -1,7 +1,7 @@ name: Sync Configuration Files on: - workflow_dispatch: # manual also + workflow_dispatch: # manual trigger repository_dispatch: types: [sync-configuration] @@ -30,9 +30,19 @@ jobs: - name: Sync Configuration Directory run: | 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 - 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 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}