From d51a32aa561d2f85e3403afb6ba53cd2816e2b8b Mon Sep 17 00:00:00 2001 From: Art Morozov Date: Fri, 23 Aug 2024 16:04:39 -0400 Subject: [PATCH] Add autosync action (#33) --- .github/workflows/sync.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/sync.yml diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml new file mode 100644 index 00000000..1510126b --- /dev/null +++ b/.github/workflows/sync.yml @@ -0,0 +1,16 @@ +name: sync-fork +on: + push: + branches: + - main +jobs: + sync: + runs-on: ubuntu-latest + permissions: + contents: write + if: github.repository == 'SolaceLabs/solace-ai-connector' + steps: + - run: gh repo sync SolaceDev/solace-ai-connector --source SolaceLabs/solace-ai-connector --branch $BRANCH_NAME + env: + GITHUB_TOKEN: ${{ secrets.GH_PAT }} + BRANCH_NAME: ${{ github.ref_name }}