https://github.com/codelytv/no-branches
🕊 GitHub Action to autoremove all branches
https://github.com/codelytv/no-branches
actions branching git github github-action github-actions
Last synced: 7 months ago
JSON representation
🕊 GitHub Action to autoremove all branches
- Host: GitHub
- URL: https://github.com/codelytv/no-branches
- Owner: CodelyTV
- License: mit
- Created: 2020-04-08T12:47:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-08T14:27:34.000Z (over 5 years ago)
- Last Synced: 2025-04-20T15:18:23.675Z (7 months ago)
- Topics: actions, branching, git, github, github-action, github-actions
- Language: Shell
- Size: 3.91 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
🕊 No Branches
Useful if you do trunk-based development or master-only git flow
## 🚀 Usage
Create a file named `remove-branch.yml` inside the `.github/workflows` directory and paste:
```yml
name: Remove branch
on:
create
jobs:
remove-branch:
runs-on: ubuntu-latest
steps:
- uses: codelytv/no-branches@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
## ⚖️ License
[MIT](LICENSE)