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
24name : Mirror intel/llvm commits
35
46on :
911permissions :
1012 contents : read
1113
14+ env :
15+ UR_BRANCH : main
16+
1217jobs :
1318 mirror-commits :
1419 runs-on : ubuntu-latest
@@ -17,32 +22,33 @@ jobs:
1722 pull-requests : write
1823
1924 steps :
20- - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
25+ - name : Checkout UR
26+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2127 with :
2228 path : unified-runtime
23- ref : main
29+ ref : ${{ env.UR_BRANCH }}
2430
25- - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
31+ - name : Checkout intel/llvm
32+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2633 with :
2734 path : intel-llvm
2835 repository : intel/llvm
2936 fetch-depth : 0
3037 ref : sycl
3138
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 }}
3545
36- - run : |
46+ - name : Mirror commits
47+ run : |
3748 python3 unified-runtime/scripts/mirror-commits-from-intel-llvm.py unified-runtime intel-llvm
3849
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