chore(cli): Fix container push test. #322
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: 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 | |