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