Skip to content

Commit 44f3614

Browse files
authored
Fix idle ONNX/ORT check in CIs: use main branch instead (#505)
1 parent 603c703 commit 44f3614

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/linux_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
python -m pip install --upgrade pip
3636
python -m pip install onnx onnxruntime requests
3737
38-
- name: Test new models by onnxs
38+
- name: Test new models by onnx
3939
run: |
4040
python workflow_scripts/test_models.py --target onnx
4141

workflow_scripts/test_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ def main():
2020

2121
cwd_path = Path.cwd()
2222
# git fetch first for git diff on GitHub Action
23-
subprocess.run(['git', 'fetch', 'origin', 'master:master'], cwd=cwd_path, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
23+
subprocess.run(['git', 'fetch', 'origin', 'main:main'], cwd=cwd_path, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
2424
# obtain list of added or modified files in this PR
25-
obtain_diff = subprocess.Popen(['git', 'diff', '--name-only', '--diff-filter=AM', 'origin/master', 'HEAD'],
25+
obtain_diff = subprocess.Popen(['git', 'diff', '--name-only', '--diff-filter=AM', 'origin/main', 'HEAD'],
2626
cwd=cwd_path, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
2727
stdoutput, stderroutput = obtain_diff.communicate()
2828
diff_list = stdoutput.split()

0 commit comments

Comments
 (0)