Skip to content

chore(cli): Fix container push test. #322

chore(cli): Fix container push test.

chore(cli): Fix container push test. #322

name: Watch for and start Github Release
on:
pull_request_target:
branches:
- main
types:
- closed
jobs:
get-source-branch-name:
# GHA does not provide short name for branch being merged in. This shortens it so we can validate it with startsWith()
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
outputs:
sourceName: ${{ steps.sourceName.outputs.sourceName }}
steps:
- uses: actions/checkout@v3
- name: Remove 'refs/heads/' from GITHUB_HEAD_REF
shell: bash
id: sourceName
run: echo "sourceName=${GITHUB_HEAD_REF#refs/heads/}" >> $GITHUB_OUTPUT
start-release:
needs: [ get-source-branch-name ]
if: startsWith(needs.get-source-branch-name.outputs.sourceName, 'release-')
uses: ./.github/workflows/tag-create-github-release.yml
secrets: inherit