diff --git a/.github/workflows/update_exchange_rates.yml b/.github/workflows/update_exchange_rates.yml index 9377ba0..759a4e3 100644 --- a/.github/workflows/update_exchange_rates.yml +++ b/.github/workflows/update_exchange_rates.yml @@ -36,13 +36,10 @@ jobs: git config --global user.name 'github-actions[bot]' git config --global user.email 'github-actions[bot]@users.noreply.github.com' - # Create or switch to the branch - if git show-ref --verify --quiet refs/heads/chore/update-currency-rates; then - git checkout chore/update-currency-rates - git pull origin chore/update-currency-rates - else - git checkout -b chore/update-currency-rates - fi + # Checkout a new branch + git checkout -b chore/update-currency-rates + + git pull origin chore/update-currency-rates # Add changes git add static/currency_rates.json