[CI] create llvm auto-bump workflow #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bump LLVM | |
on: | |
pull_request: | |
# schedule: | |
# - cron: '0 10 * * 1' | |
jobs: | |
update-dep: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Check out repository" | |
uses: actions/[email protected] | |
with: | |
submodules: true | |
- name: "Sync third-party/llvm-project" | |
id: sync-llvm-project | |
run: | | |
pushd third-party/llvm-project | |
git checkout main && git pull | |
echo "LLVM_SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | |
popd | |
- name: "Create Pull Request" | |
uses: peter-evans/create-pull-request@v7 | |
with: | |
token: "${{ secrets.GITHUB_TOKEN }}" | |
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
commit-message: Bump LLVM to ${{ steps.sync-llvm-project.outputs.LLVM_SHA_SHORT }} | |
title: Bump LLVM to ${{ steps.sync-llvm-project.outputs.LLVM_SHA_SHORT }} | |
branch: update-llvm | |
delete-branch: true | |
assignees: makslevental | |
reviewers: makslevental |