rocMLIR main weekly sync #9
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: 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: | | |
#cd $GITHUB_WORKSPACE | |
#pwd | |
#cat requirements.txt | |
sed -i "s/ROCmSoftwarePlatform\/rocMLIR@.* -DBUILD_FAT_LIBROCKCOMPILER=On/ROCmSoftwarePlatform\/rocMLIR@${{ env.rocmlirsha }} -DBUILD_FAT_LIBROCKCOMPILER=On/g" $GITHUB_WORKSPACE/requirements.txt | |
cat requirements.txt | |
- name: Make changes to pull request | |
uses: peter-evans/[email protected] | |
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 |