From 9730908c2ba9aefe53727a2ae1df45220a707e36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gy=C3=B6rgy=20Krajcsovits?= Date: Mon, 30 Jan 2023 10:28:27 +0100 Subject: [PATCH] Use tgymnich/fork-sync to create PR from upstream merge MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Should be able to create upstream to main merge PR. Uses https://github.com/marketplace/actions/fork-sync for creating PR Uses octokit , e.g. https://octokit.github.io/rest.js/v19#repos-get Signed-off-by: György Krajcsovits --- .github/workflows/sync-fork.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/sync-fork.yml diff --git a/.github/workflows/sync-fork.yml b/.github/workflows/sync-fork.yml new file mode 100644 index 000000000..9d22e95c1 --- /dev/null +++ b/.github/workflows/sync-fork.yml @@ -0,0 +1,17 @@ +name: sync fork with upstream + +on: + schedule: + - cron: '11 8 * * 1' # 8:11 UTC on Monday + + workflow_dispatch: # for manual testing + +jobs: + sync-fork-pr: + runs-on: ubuntu-latest + steps: + - uses: tgymnich/fork-sync@v1.7 + with: + owner: grafana + base: main + head: main