Skip to content

Commit a7fa9fd

Browse files
Merge pull request #2835 from lukaszstolarczuk/mirror-update
Mirror commits from intel/llvm without PRs
2 parents a904b6f + ac130ab commit a7fa9fd

File tree

2 files changed

+30
-18
lines changed

2 files changed

+30
-18
lines changed
Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
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
24
name: Mirror intel/llvm commits
35

46
on:
@@ -9,6 +11,9 @@ on:
911
permissions:
1012
contents: read
1113

14+
env:
15+
UR_BRANCH: main
16+
1217
jobs:
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 }}

scripts/mirror-commits-from-intel-llvm.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/usr/bin/env python3
22

3+
# Copyright (C) 2025 Intel Corporation
4+
#
5+
# Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions.
6+
# See LICENSE.TXT
7+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8+
39
"""
410
Mirror commits from the unified-runtime top level directory in the
511
https://github.com/intel/llvm repository to the root of the

0 commit comments

Comments
 (0)