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: Release branch name test | |
on: | |
release: | |
types: | |
- created | |
jobs: | |
branch-name: | |
name: Get branch names. | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get branch names with tj-actions. | |
id: branch-names | |
uses: tj-actions/branch-names@v8 | |
conditional-exit: | |
name: Conditionally print stuff | |
runs-on: ubuntu-latest | |
steps: | |
- id: branch-names | |
uses: tj-actions/branch-names@v8 | |
- name: Check release branch | |
run: | | |
echo conditionally | |
if ${{steps.branch-names.outputs.current_branch != 'master'}} then exit 0 | |
- name: Some stuff | |
run: | | |
echo some stuff | |
- name: Some other stuff | |
run: | | |
echo some other stuff |