-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: further improve branch cleanup script [skip ci]
- Loading branch information
Showing
1 changed file
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,8 +33,21 @@ jobs: | |
run: |- | ||
git config user.name "team-tf-cdk" | ||
git config user.email "[email protected]" | ||
- name: Delete old branches from previous runs | ||
run: | | ||
git branch -r | egrep -o "upgrade-provider-project.*" | xargs -n 1 git push origin --delete | ||
git branch -r | egrep -o "cdktf-next-pr.*" | xargs -n 1 git push origin --delete | ||
- name: Delete old branches from previous repo-manager runs | ||
run: git branch -r | egrep -o "upgrade-provider-project.*" | xargs -n 1 git push origin --delete | ||
continue-on-error: true # don't fail the run if these branches never existed | ||
- name: Delete old branches from when we used to build providers against cdktf@next | ||
run: git branch -r | egrep -o "cdktf-next-pr.*" | xargs -n 1 git push origin --delete | ||
continue-on-error: true # don't fail the run if these branches never existed | ||
- name: Delete old renovate branches that were never used | ||
run: git branch -r | egrep -o ".*renovate.*" | xargs -n 1 git push origin --delete | ||
continue-on-error: true # don't fail the run if these branches never existed | ||
- name: Delete old update-main branch that has not been used in 3 years | ||
run: git branch -r | egrep -o "update-main" | xargs -n 1 git push origin --delete | ||
continue-on-error: true # don't fail the run if these branches never existed | ||
- name: Delete old Projen branch name convention that has not been used in 3 years # the one we use nowadays is github-actions/upgrade-main | ||
run: git branch -r | egrep -o "github-actions/upgrade" | xargs -n 1 git push origin --delete | ||
continue-on-error: true # don't fail the run if these branches never existed | ||
- name: Delete another Projen branch name convention that has not been used in 3 years | ||
run: git branch -r | egrep -o "github-actions/upgrade-dependencies" | xargs -n 1 git push origin --delete | ||
continue-on-error: true # don't fail the run if these branches never existed |