Skip to content

Commit ba35830

Browse files
committed
feat(git): delete branch protection rule file after apply
1 parent 92b4a47 commit ba35830

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎copier.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ _tasks:
1919
when: "{{ push_to_github }}"
2020
- command: "gh api --method PUT -H \"Accept: application/vnd.github+json\" repos/{{ github_username }}/{{ project_github_name }}/branches/main/protection --input branch_protection_rules.json"
2121
when: "{{ push_to_github }}"
22+
- command: rm branch_protection_rules.json
2223

2324
# Questions
2425

‎template/.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,5 @@ config
171171
/hooks
172172
/objects
173173
/refs
174+
175+
branch_protection_rules.json

0 commit comments

Comments
 (0)