forked from ROCm/AMDMIGraphX
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e496c1
commit 04f4510
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: rocMLIR main weekly sync | ||
|
||
on: | ||
# schedule: | ||
# - cron: '10 17 * * 5' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
createPullRequest: | ||
name: Update and create pull request | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: get_date | ||
run: echo todays_date="$(date +'%Y-%m-%d')" >> $GITHUB_ENV | ||
|
||
- name: extract_sha1 | ||
run: echo rocmlirsha="$(git ls-remote https://github.com/ROCm/rocMLIR.git develop | awk '{print $1}')" >> $GITHUB_ENV | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
ref: develop | ||
|
||
- name: update_file | ||
run: sed -i "s/ROCmSoftwarePlatform\/rocMLIR@.* -DBUILD_FAT_LIBROCKCOMPILER=On/ROCmSoftwarePlatform\/rocMLIR@${{ env.rocmlirsha }} -DBUILD_FAT_LIBROCKCOMPILER=On/g" requirements.txt | ||
|
||
- name: Make changes to pull request | ||
uses: peter-evans/create-pull-request@v4 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: Update rocMLIR main ${{ env.rocmlirsha }} | ||
committer: Github <[email protected]> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
signoff: false | ||
branch: rocMLIR-sync-${{ env.todays_date }} | ||
delete-branch: true | ||
title: 'rocMLIR Weekly Sync ${{ env.todays_date }}' | ||
body: | | ||
Update rocMLIR version | ||
- Updated with changes from ${{ env.todays_date }} | ||
- Auto-generated by [create-pull-request][1] | ||
- Update requirements.txt to rocMLIR@${{ env.rocmlirsha }} | ||
[1]: https://github.com/peter-evans/create-pull-request | ||
labels: | | ||
onnxruntime | ||
dependencies | ||
automated | ||
skip bot checks | ||
assignees: | | ||
TedThemistokleous | ||
reviewers: | | ||
TedThemistokleous | ||
causten | ||
draft: false | ||
base: develop |