Skip to content

Commit 4ef13dc

Browse files
committed
Add workflow to mirror commits from intel/llvm
1 parent e597c9c commit 4ef13dc

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
name: Mirror intel/llvm commits
3+
4+
on:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: "0 * * * *"
8+
9+
jobs:
10+
mirror-commits:
11+
runs-on: ubuntu-latest
12+
13+
permissions:
14+
contents: write
15+
16+
steps:
17+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
18+
with:
19+
path: ${{github.workspace}}/unified-runtime
20+
ref: main
21+
22+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
23+
with:
24+
path: ${{github.workspace}}/intel-llvm
25+
repository: intel/llvm
26+
fetch-depth: 0
27+
ref: sycl
28+
29+
- run: |
30+
git -C ${{github.workspace}}/unified-runtime config user.name "github-actions[bot]"
31+
git -C ${{github.workspace}}/unified-runtime config user.email "github-actions[bot]@users.noreply.github.com"
32+
33+
- run: |
34+
python3 unified-runtime/scripts/mirror-commits-from-intel-llvm.py ${{github.workspace}}/unified-runtime ${{github.workspace}}/intel-llvm
35+
36+
- run: |
37+
git -C ${{github.workspace}}/unified-runtime push origin main

0 commit comments

Comments
 (0)