Skip to content

Commit

Permalink
Update build-push-next.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
danchitnis authored Nov 20, 2024
1 parent 7d86550 commit 92d669f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build-push-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,14 @@ jobs:

# Check if 'bot' branch exists and delete it if it does
- name: Delete 'bot' branch if it exists
run: gh repo view --json branches | jq -r '.branches[].name' | grep -q "^bot$" && gh branch delete bot --force
run: gh api "repos/:owner/:repo/branches" --jq '.[].name' | grep -q "^bot$" && gh branch delete bot --force

# Create new 'bot' branch from 'next'
- name: Create new 'bot' branch
run: gh repo create-branch bot --source next
run: |
git checkout next
git checkout -b bot
git push -u origin bot
# Create a Pull Request
- name: Create Pull Request
Expand Down

0 comments on commit 92d669f

Please sign in to comment.