From 3858ec5686038ea746ba062900ff43303d9babf0 Mon Sep 17 00:00:00 2001 From: Kerem Yilmaz Date: Wed, 13 Mar 2024 00:37:18 -0700 Subject: [PATCH] Setup auto sync for skyvern cloud (#56) --- .github/sync.yml | 5 ++++ .github/workflows/sync-skyvern-cloud.yml | 34 ++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .github/sync.yml create mode 100644 .github/workflows/sync-skyvern-cloud.yml diff --git a/.github/sync.yml b/.github/sync.yml new file mode 100644 index 00000000..5f3bf1fa --- /dev/null +++ b/.github/sync.yml @@ -0,0 +1,5 @@ +Skyvern-AI/skyvern-cloud@sync-oss: + - source: skyvern/ + dest: skyvern/ + - source: streamlit_app/ + dest: streamlit_app/ diff --git a/.github/workflows/sync-skyvern-cloud.yml b/.github/workflows/sync-skyvern-cloud.yml new file mode 100644 index 00000000..952b9bf9 --- /dev/null +++ b/.github/workflows/sync-skyvern-cloud.yml @@ -0,0 +1,34 @@ +name: Sync to skyvern-cloud +on: + push: + branches: + - main + workflow_dispatch: +jobs: + sync: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@master + - name: Run GitHub File Sync + uses: BetaHuhn/repo-file-sync-action@v1 + with: + GH_PAT: ${{ secrets.SKYVERN_CLOUD_GH_PAT }} + - uses: actions/checkout@master + with: + token: ${{ secrets.SKYVERN_CLOUD_GH_PAT }} + repository: Skyvern-AI/skyvern-cloud + - name: Create PR in skyvern-cloud + uses: peter-evans/create-pull-request@v6 + with: + token: ${{ secrets.SKYVERN_CLOUD_GH_PAT }} + commit-message: Sync from open source skyvern + title: Sync from open source skyvern + branch: sync-oss + base: main + body: | + This PR was automatically created by the sync-skyvern-cloud.yml workflow. + It syncs the main branch of the skyvern repository to the main branch of the skyvern-cloud repository. + Please review and merge this PR if it looks good. + labels: sync + draft: false \ No newline at end of file