-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (37 loc) · 1.21 KB
/
clean.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
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 }}