⚡ Refactor Caddy wrapper to use symlinks instead of copying #1
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: "Delete merged bot branches" | |
| on: | |
| pull_request: | |
| types: [closed] | |
| jobs: | |
| cleanup: | |
| permissions: | |
| contents: write | |
| # Only run if: | |
| # 1. PR was actually merged (not just closed) | |
| # 2. Head branch is in the same repo (not a fork) | |
| # 3. Branch name matches your bot's pattern | |
| if: | | |
| github.event.pull_request.merged == true && | |
| github.event.pull_request.head.repo.full_name == github.repository && | |
| github.event.pull_request.head.ref == 'update_flake_lock_action' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Delete branch | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| gh api -X DELETE \ | |
| repos/${{ github.repository }}/git/refs/heads/${{ github.event.pull_request.head.ref }} |