Skip to content

Branch Action

Branch Action #253

Workflow file for this run

name: Branch Action
on: # yamllint disable-line rule:truthy
- delete
- create
permissions:
contents: none
concurrency:
group: "${{ github.workflow }}"
jobs:
action:
if: github.event.ref_type == 'branch'
runs-on: ubuntu-latest
steps:
- name: "Branch Action"
env:
GH_TOKEN: ${{ secrets.CONTROLLER_REPOSITORY_TOKEN }}
run: |
if [[ -n "${{ secrets.CONTROLLER_REPOSITORY_FULL_NAME }}" ]]
then
APPLICATION_REPOSITORY_FULL_NAME_BASE64=$( echo -n ${{ github.repository }} | base64 | tr -d '\n\r' )
gh workflow run application.yml -R "${{ secrets.CONTROLLER_REPOSITORY_FULL_NAME }}" -F "application=${APPLICATION_REPOSITORY_FULL_NAME_BASE64}"
fi