From b03343bc4d249af295a4833161289d8339a0052a Mon Sep 17 00:00:00 2001 From: Yury Gargay Date: Wed, 6 Dec 2023 17:51:11 +0100 Subject: [PATCH] Add sync-main.yml GitHub workflow (#1359) --- .github/workflows/sync-main.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/sync-main.yml diff --git a/.github/workflows/sync-main.yml b/.github/workflows/sync-main.yml new file mode 100644 index 0000000000..e36e35a2d6 --- /dev/null +++ b/.github/workflows/sync-main.yml @@ -0,0 +1,22 @@ +name: sync main + +on: + push: + branches: + - main + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || github.actor_id }} + cancel-in-progress: true + +jobs: + trigger_sync_main: + runs-on: ubuntu-latest + steps: + - name: Trigger main branch sync + uses: benc-uk/workflow-dispatch@v1 + with: + workflow: sync-main.yml + repo: ${{ secrets.UPSTREAM_REPO }} + token: ${{ secrets.NC_GITHUB_TOKEN }} + inputs: '{ "sha": "${{ github.sha }}" }' \ No newline at end of file