From 192e74d54fa66fa71a8650c11684be4527d43376 Mon Sep 17 00:00:00 2001 From: Dan Mindru Date: Thu, 6 Feb 2025 15:45:42 +0100 Subject: [PATCH] Add mirroring --- .../workflows/mirror-page-ui-to-page-ai.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/mirror-page-ui-to-page-ai.yml diff --git a/.github/workflows/mirror-page-ui-to-page-ai.yml b/.github/workflows/mirror-page-ui-to-page-ai.yml new file mode 100644 index 0000000..066a187 --- /dev/null +++ b/.github/workflows/mirror-page-ui-to-page-ai.yml @@ -0,0 +1,26 @@ +name: Push PageUI + +on: + push: + branches: + - main # Adjust branch as needed + +jobs: + copy-file: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Pushes all PageUI templates to PageAI + uses: datalbry/copy_folder_to_another_repo_action@1.0.0 + env: + API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} + with: + source_folder: './' + destination_repo: 'danmindru/page-ai' + destination_branch: 'main' + destination_folder: 'packages/api/page-ui' + user_email: 'action@github.com' + user_name: 'danmindru' + commit_msg: '🔄 Sync Page UI'