diff --git a/packs/ml-python-gpu-training/pipeline.yaml b/packs/ml-python-gpu-training/pipeline.yaml index d80c44703..a5c04f901 100644 --- a/packs/ml-python-gpu-training/pipeline.yaml +++ b/packs/ml-python-gpu-training/pipeline.yaml @@ -63,7 +63,7 @@ pipelines: cp ../*.onnx . && cp -r ../metrics . && git add *.onnx metrics && - jx create pullrequest --push -b --title 'New model trained' --body 'feat: New model trained' && + { jx create pullrequest --push -b --title 'New model trained' --body 'feat: New model trained' || echo 'Using previous PR'; } && sha1sum *.onnx >&2 name: export-model diff --git a/packs/ml-python-training/pipeline.yaml b/packs/ml-python-training/pipeline.yaml index d83b9ba29..60d5774a7 100644 --- a/packs/ml-python-training/pipeline.yaml +++ b/packs/ml-python-training/pipeline.yaml @@ -57,7 +57,7 @@ pipelines: git lfs track '*.onnx' && cp ../*.onnx . && git add *.onnx && - jx create pullrequest --push -b --title 'New model trained' --body 'feat: New model trained' && + { jx create pullrequest --push -b --title 'New model trained' --body 'feat: New model trained' || echo 'Using previous PR'; } && sha1sum *.onnx >&2 name: export-model post: