Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
3ad6132c
Unverified
Commit
3ad6132c
authored
Mar 09, 2023
by
Ted Themistokleous
Committed by
GitHub
Mar 09, 2023
Browse files
Update github action for onnxruntime sync to open autoPR (#1606)
* Update github action for onnxruntime sync to open autoPR
parent
69799cb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
35 deletions
+41
-35
.github/workflows/sync-onnxrt-main.yaml
.github/workflows/sync-onnxrt-main.yaml
+41
-35
No files found.
.github/workflows/sync-onnxrt-main.yaml
View file @
3ad6132c
name
:
Onnxruntime main weekly sync
on
:
schedule
:
-
cron
:
"
05
1
7
*
*
1"
-
cron
:
'
27
1
8
*
*
4'
jobs
:
runs-on
:
ubuntu-latest
sync
:
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 onnxsha="$(git ls-remote https://github.com/microsoft/onnxruntime.git HEAD | awk '{print $1}')" >> $GITHUB_ENV
-
name
:
echo_sha1
run
:
echo ${{ env.onnxsha }}
-
uses
:
actions/checkout@v3
with
:
with
:
ref
:
develop
path
:
../
get_date
:
steps
:
-
run
:
echo "::set-output name=date::$(date +'%Y-%m-%d')"
-
name
:
update_file
run
:
echo ${{ env.onnxsha }} > test/onnx/.onnxrt-commit
update_file
:
needs
:
[
sync get_date
]
steps
:
-
run
:
git clone https://github.com/microsoft/onnxruntime.git && cd onnxruntime && git rev-parse HEAD >> ../test/onnx/.onnxrt-commit
Add_commit
:
needs
:
update_file
steps
:
-
name
:
Add & Commit
uses
:
EndBug/add-and-commit@v9.1.1
-
name
:
Make changes to pull request
uses
:
peter-evans/create-pull-request@v4
with
:
new_branch
:
onnxruntime-sync-${{ steps.date.outputs.date }}
add
:
../test/onnx/.onnxrt-commit
message
:
Update Onnxruntime commit to latest release
default_author
:
github_actions
push
:
true
PR
:
needs
:
Add_commit
steps
:
-
name
:
GitHub Action for creating Pull Requests
uses
:
devops-infra/action-pull-request@v0.5.3
with
:
github_token
:
${{ secrets.GITHUB_TOKEN }}
title
:
Sync Onnxruntime main
reviewer
:
pfultz2, causten
assignee
:
TedThemistokleous
label
:
automatic, onnxruntime
target_branch
:
develop
token
:
${{ secrets.GITHUB_TOKEN }}
commit-message
:
Update onnxruntime main ${{ env.onnxsha }}
committer
:
Github <noreply@github.com>
author
:
${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff
:
false
branch
:
onnxruntime-sync-${{ env.todays_date }}
delete-branch
:
true
title
:
'
Onnxruntime
Weekly
Sync
${{
env.todays_date
}}'
body
:
|
Update CI point for Onnxruntime builds
- Updated with changes from ${{ env.todays_date }}
- Auto-generated by [create-pull-request][1]
- Update .onnxrt-commit to ${{ env.onnxsha }}
[1]: https://github.com/peter-evans/create-pull-request
labels
:
|
onnxruntime
dependancies
automated
assignees
:
TedThemistokleous
reviewers
:
TedThemistokleous causten
draft
:
false
base
:
develop
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment