From 540f9eb343000b01da33197110d48e3aaf31d9c0 Mon Sep 17 00:00:00 2001 From: Evan Ray Date: Thu, 8 Jun 2023 13:41:32 -0400 Subject: [PATCH] Update update-example-hub.yaml --- .github/workflows/update-example-hub.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-example-hub.yaml b/.github/workflows/update-example-hub.yaml index e3d8a97..738db4e 100644 --- a/.github/workflows/update-example-hub.yaml +++ b/.github/workflows/update-example-hub.yaml @@ -16,10 +16,8 @@ jobs: - name: Checkout update_example_simple_forecast_hub branch, remove existing run: | git fetch --all - git branch update_example_simple_forecast_hub - git checkout update_example_simple_forecast_hub - git pull origin update_example_simple_forecast_hub - git rm -r inst/example-data/example-simple-forecast-hub/ + git switch update_example_simple_forecast_hub || git switch -c update_example_simple_forecast_hub + git rm -r inst/example-data/example-simple-forecast-hub/ --ignore-unmatch working-directory: ./hubEnsembles - name: Checkout example-simple-forecast-hub