[llvm] Create sync-fork.yaml (PR #65714)

Maksim Levental via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 7 22:52:23 PDT 2023


https://github.com/makslevental created https://github.com/llvm/llvm-project/pull/65714:

None

>From 4f4e449f321fd9d8b5e627b66050d3cd03b9aeee Mon Sep 17 00:00:00 2001
From: Maksim Levental <maksim.levental at gmail.com>
Date: Fri, 8 Sep 2023 00:51:31 -0500
Subject: [PATCH] Create sync-fork.yaml

---
 .github/workflows/sync-fork.yaml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 .github/workflows/sync-fork.yaml

diff --git a/.github/workflows/sync-fork.yaml b/.github/workflows/sync-fork.yaml
new file mode 100644
index 000000000000000..0e1bc9a0001ff82
--- /dev/null
+++ b/.github/workflows/sync-fork.yaml
@@ -0,0 +1,16 @@
+name: sync-fork
+on:
+  schedule:
+    - cron: '0 0 * * *'
+  workflow_dispatch: { }
+jobs:
+  sync:
+    runs-on: ubuntu-latest
+    permissions:
+      contents: write
+    steps:
+      - run: gh repo sync $REPOSITORY -b $BRANCH_NAME
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+          REPOSITORY: ${{ github.repository }}
+          BRANCH_NAME: ${{ github.ref_name }}



More information about the llvm-commits mailing list