Skip to content

Clean Out Branches #1307

Clean Out Branches

Clean Out Branches #1307

Workflow file for this run

---
name: Clean Out Branches
on:
repository_dispatch:
types: [dev-clean]
workflow_dispatch:
inputs:
branch_name:
description: 'Branch or tag'
required: true
jobs:
branch_name:
runs-on: ubuntu-latest
outputs:
branch: ${{ steps.extract_branch.outputs.branch }}
steps:
- run: |
temp=${{ github.event.client_payload.branch }}
git_ref_name=${temp:-'${{ github.event.inputs.branch_name }}'}
echo "git_ref_name=$git_ref_name" >> $GITHUB_ENV
echo git_ref_name $git_ref_name
- name: Extract branch name
shell: bash
run: echo "branch=${git_ref_name}" >> $GITHUB_OUTPUT
id: extract_branch
clean:
needs:
- branch_name
uses: hpi-schul-cloud/dof_app_deploy/.github/workflows/clean_workflow.yml@bc-4530
with:
branch: ${{ needs.branch_name.outputs.branch }}
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
DEV_KUBE_CONFIG: ${{ secrets.DEV_KUBE_CONFIG }}