Skip to content

Mirror intel/llvm commits #31

Mirror intel/llvm commits

Mirror intel/llvm commits #31

---
name: Mirror intel/llvm commits
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
permissions:
contents: read
jobs:
mirror-commits:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
path: unified-runtime
ref: main
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
path: intel-llvm
repository: intel/llvm
fetch-depth: 0
ref: sycl
- run: |
git -C ${{github.workspace}}/unified-runtime config user.name "github-actions[bot]"
git -C ${{github.workspace}}/unified-runtime config user.email "github-actions[bot]@users.noreply.github.com"
- run: |
python3 unified-runtime/scripts/mirror-commits-from-intel-llvm.py unified-runtime intel-llvm
- id: date
run: echo "::set-output name=value::$(date +'%Y-%m-%d')"
- uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
with:
title: Mirror intel/llvm commits ${{ steps.date.output.value }}
branch: mirror-commits-${{ steps.date.output.value }}
path: unified-runtime
token: ${{ secrets.UR_MIRROR_COMMITS_TOKEN }}
branch-token: ${{ secrets.GITHUB_TOKEN }}