Skip to content

Commit

Permalink
chore: update workflow to clean up branch (#6120)
Browse files Browse the repository at this point in the history
  • Loading branch information
alicejli committed Jul 25, 2023
1 parent 421d98c commit d97240b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/update-readme-table.yaml
Expand Up @@ -20,6 +20,11 @@ jobs:
with:
python-version: '3.9'

- name: Delete existing 'update-readme-bot' branch
run: |
git push --delete origin update-readme-bot || echo "Branch doesn't exist, continuing..."
git branch -D update-readme-bot || echo "Branch doesn't exist, continuing..."
- name: Install dependencies
run: pip install pyyaml

Expand All @@ -34,8 +39,8 @@ jobs:
git config --global user.email "cloud-java-bot@google.com"
git add README.md
git commit -m "chore: update README with release table"
git checkout -b update-readme
git push origin update-readme
git checkout -b update-readme-bot
git push origin update-readme-bot
- name: Create Pull Request
run: |
Expand Down

0 comments on commit d97240b

Please sign in to comment.