Commit 72e2a70f authored by Ted Themistokleous's avatar Ted Themistokleous
Browse files

Remove clone and RM statements, update onnxsha with awk

Use Chris's suggestion to speed up action and remove the need for clone + rm
statements
parent 838a4a43
...@@ -8,24 +8,15 @@ jobs: ...@@ -8,24 +8,15 @@ jobs:
name: Update and create pull request name: Update and create pull request
runs-on: self-hosted runs-on: self-hosted
steps: steps:
- name: cleanup-old-runs
run: rm -rf onnxruntime
- name: get_date - name: get_date
run: echo todays_date="$(date +'%Y-%m-%d')" >> $GITHUB_ENV run: echo todays_date="$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: get-onnxrt-main
run: git clone https://github.com/microsoft/onnxruntime.git
- name: extract_sha1 - name: extract_sha1
run: cd onnxruntime && echo onnxsha="$(git rev-parse HEAD)" >> $GITHUB_ENV run: echo onnxsha="$(git ls-remote https://github.com/microsoft/onnxruntime.git HEAD | awk '{print $1}')" >> $GITHUB_ENV
- name: echo_sha1 - name: echo_sha1
run: echo ${{ env.onnxsha }} run: echo ${{ env.onnxsha }}
- name: cleanup-run
run: rm -rf onnxruntime
- uses: actions/checkout@v3 - uses: actions/checkout@v3
with: with:
ref: master ref: master
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment