Skip to content

Update file

Update file #4

Workflow file for this run

name: Update file
on:
workflow_dispatch:
jobs:
UpdateFile:
name: Update file test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- 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
- name: Update
run: |
pwd
ls -l requirements.txt
sed -i "s/ROCmSoftwarePlatform\/rocMLIR@[^ ]*/ROCmSoftwarePlatform\/rocMLIR@${{ env.rocmlirsha }}/g" requirements.txt
ls -l requirements.txt
cat requirements.txt
- name: Make changes to pull request
uses: peter-evans/[email protected]
with:
token: ${{ secrets.GH_TEST_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
draft: false
base: main