Skip to content

Commit 4af6cae

Browse files
authored
Merge pull request #2754 from kbenzie/benie/ur-mirror-create-pr
Automate PR containing intel/llvm mirror commits
2 parents 7c7f0b1 + 10bb9a1 commit 4af6cae

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/mirror-intel-llvm-commits.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ name: Mirror intel/llvm commits
33

44
on:
55
workflow_dispatch:
6-
# TODO: Renable schedule once push permission issue is resolved
7-
# schedule:
8-
# - cron: "0 * * * *"
6+
schedule:
7+
- cron: "0 * * * *"
98

109
permissions:
1110
contents: read
@@ -15,6 +14,7 @@ jobs:
1514
runs-on: ubuntu-latest
1615
permissions:
1716
contents: write
17+
pull-requests: write
1818

1919
steps:
2020
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -36,5 +36,10 @@ jobs:
3636
- run: |
3737
python3 unified-runtime/scripts/mirror-commits-from-intel-llvm.py ${{github.workspace}}/unified-runtime ${{github.workspace}}/intel-llvm
3838
39-
- run: |
40-
git -C ${{github.workspace}}/unified-runtime push origin main
39+
- id: date
40+
run: echo "::set-output name=value::$(date +'%Y-%m-%d')"
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 }}

0 commit comments

Comments
 (0)