Skip to content

Commit

Permalink
Add sync-main.yml GitHub workflow (#1359)
Browse files Browse the repository at this point in the history
  • Loading branch information
surik authored Dec 6, 2023
1 parent 36d62f1 commit b03343b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/sync-main.yml
Original file line number Diff line number Diff line change
@@ -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 }}" }'

0 comments on commit b03343b

Please sign in to comment.