Clean Out Branches #1328
Workflow file for this run
This file contains 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: 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-7024-migration-to-ionos-postgres-dev | |
with: | |
branch: ${{ needs.branch_name.outputs.branch }} | |
secrets: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
DEV_KUBE_CONFIG_BRB: ${{ secrets.DEV_KUBE_CONFIG_BRB }} | |
DEV_KUBE_CONFIG_NBC: ${{ secrets.DEV_KUBE_CONFIG_NBC }} | |
DEV_KUBE_CONFIG_THR: ${{ secrets.DEV_KUBE_CONFIG_THR }} | |
DEV_KUBE_CONFIG_DBC: ${{ secrets.DEV_KUBE_CONFIG_DBC }} |