Skip to content

Commit

Permalink
Checkout branch first
Browse files Browse the repository at this point in the history
  • Loading branch information
TyHil committed Nov 11, 2024
1 parent c635746 commit 9e3a6b3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/update-autocomplete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 .
Expand Down

0 comments on commit 9e3a6b3

Please sign in to comment.