Cleanup workflows (#12818)

* Cleanup Workflows

* Cleanup unneded workflows
This commit is contained in:
Michel Roegl-Brunner
2026-03-12 14:29:48 +01:00
committed by GitHub
parent 57b59e8fbd
commit ef942a61c0
18 changed files with 0 additions and 2136 deletions
-29
View File
@@ -1,29 +0,0 @@
name: Delete JSON date PR Branch
on:
pull_request:
types: [closed]
branches:
- main
jobs:
delete_branch:
if: github.repository == 'community-scripts/ProxmoxVE'
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Delete PR Update Branch
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'pr-update-json-')
run: |
PR_BRANCH="${{ github.event.pull_request.head.ref }}"
echo "Deleting branch $PR_BRANCH..."
# Avoid deleting the default branch (e.g., main)
if [[ "$PR_BRANCH" != "main" ]]; then
git push origin --delete "$PR_BRANCH"
else
echo "Skipping deletion of the main branch"
fi