Skip to content

Commit d97240b

Browse files
authored
chore: update workflow to clean up branch (#6120)
1 parent 421d98c commit d97240b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/update-readme-table.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
with:
2121
python-version: '3.9'
2222

23+
- name: Delete existing 'update-readme-bot' branch
24+
run: |
25+
git push --delete origin update-readme-bot || echo "Branch doesn't exist, continuing..."
26+
git branch -D update-readme-bot || echo "Branch doesn't exist, continuing..."
27+
2328
- name: Install dependencies
2429
run: pip install pyyaml
2530

@@ -34,8 +39,8 @@ jobs:
3439
git config --global user.email "cloud-java-bot@google.com"
3540
git add README.md
3641
git commit -m "chore: update README with release table"
37-
git checkout -b update-readme
38-
git push origin update-readme
42+
git checkout -b update-readme-bot
43+
git push origin update-readme-bot
3944
4045
- name: Create Pull Request
4146
run: |

0 commit comments

Comments
 (0)