docs: explain the flush interval env var unit and reason #4
Workflow file for this run
This file contains hidden or 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
| name: Cleanup Merged Branch | |
| on: | |
| pull_request: | |
| types: [closed] | |
| branches: [main] | |
| jobs: | |
| delete-branch: | |
| name: Delete Merged Branch | |
| runs-on: ubuntu-latest | |
| if: github.event.pull_request.merged == true && github.event.pull_request.head.repo.full_name == github.repository | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Delete branch | |
| run: | | |
| gh api \ | |
| --method DELETE \ | |
| "repos/${{ github.repository }}/git/refs/heads/${{ github.event.pull_request.head.ref }}" \ | |
| || echo "Branch already deleted or does not exist" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |