From 9e3a6b37081f11916118de79f9482158028718fe Mon Sep 17 00:00:00 2001 From: Tyler Hill Date: Mon, 11 Nov 2024 14:47:58 -0600 Subject: [PATCH] Checkout branch first --- .github/workflows/update-autocomplete.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/update-autocomplete.yml b/.github/workflows/update-autocomplete.yml index f50002df..80a46d8a 100644 --- a/.github/workflows/update-autocomplete.yml +++ b/.github/workflows/update-autocomplete.yml @@ -15,6 +15,14 @@ jobs: - name: Check out Git repository uses: actions/checkout@v3 + - name: Create or reset the update branch + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git checkout 270-bug-new-courses-missing-from-search-due-to-outdated-autocomplete-graph + git branch -D update-course-data || true # Delete branch if it exists locally + git checkout -b update-course-data + - name: Set up Node.js uses: actions/setup-node@v3 with: @@ -32,14 +40,6 @@ jobs: - name: Build combow table run: npm run buildcombos - - name: Create or reset the update branch - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git checkout 270-bug-new-courses-missing-from-search-due-to-outdated-autocomplete-graph - git branch -D update-course-data || true # Delete branch if it exists locally - git checkout -b update-course-data - - name: Commit changes run: | git add .