Skip to content

Commit

Permalink
Create weekly_sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorMirosavljevicHTEC authored Apr 18, 2024
1 parent 6e496c1 commit 04f4510
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/weekly_sync.yml
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

0 comments on commit 04f4510

Please sign in to comment.