1
- ---
1
+ # Checks for new commits in unified-runtime dir of intel/llvm
2
+ # and pushes them to the unified-runtime repo. On top of new changes,
3
+ # there's an extra commit saving intel/llvm's base commit
2
4
name : Mirror intel/llvm commits
3
5
4
6
on :
9
11
permissions :
10
12
contents : read
11
13
14
+ env :
15
+ UR_BRANCH : main
16
+
12
17
jobs :
13
18
mirror-commits :
14
19
runs-on : ubuntu-latest
@@ -17,32 +22,33 @@ jobs:
17
22
pull-requests : write
18
23
19
24
steps :
20
- - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
25
+ - name : Checkout UR
26
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
21
27
with :
22
28
path : unified-runtime
23
- ref : main
29
+ ref : ${{ env.UR_BRANCH }}
24
30
25
- - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
31
+ - name : Checkout intel/llvm
32
+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26
33
with :
27
34
path : intel-llvm
28
35
repository : intel/llvm
29
36
fetch-depth : 0
30
37
ref : sycl
31
38
32
- - run : |
33
- git -C ${{github.workspace}}/unified-runtime config user.name "github-actions[bot]"
34
- git -C ${{github.workspace}}/unified-runtime config user.email "github-actions[bot]@users.noreply.github.com"
39
+ - name : Configure Git
40
+ working-directory : ${{github.workspace}}/unified-runtime
41
+ run : |
42
+ git config user.name "bb-ur"
43
+ git config user.email "[email protected] "
44
+ git config user.password ${{ secrets.GH_BB_TOKEN }}
35
45
36
- - run : |
46
+ - name : Mirror commits
47
+ run : |
37
48
python3 unified-runtime/scripts/mirror-commits-from-intel-llvm.py unified-runtime intel-llvm
38
49
39
- - id : date
40
- run : echo "value=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
41
-
42
- - uses : peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
43
- with :
44
- title : Mirror intel/llvm commits ${{ steps.date.output.value }}
45
- branch : mirror-commits-${{ steps.date.output.value }}
46
- path : unified-runtime
47
- token : ${{ secrets.UR_MIRROR_COMMITS_TOKEN }}
48
- branch-token : ${{ secrets.GITHUB_TOKEN }}
50
+ - name : Push new changes to UR repo
51
+ working-directory : ${{github.workspace}}/unified-runtime
52
+ run : |
53
+ git log -n 15 --oneline
54
+ git push origin ${{ env.UR_BRANCH }}
0 commit comments