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 | |
push: | |
tags: | |
- "*" | |
jobs: | |
conditional-exit: | |
name: Conditionally print stuff | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get branch names | |
id: branch-names | |
uses: tj-actions/branch-names@v8 | |
- name: Current branch names | |
run: | | |
echo "${{ steps.branch-names.outputs.current_branch }}" | |
- name: Check release branch | |
run: | | |
echo conditionally | |
echo ${{steps.branch-names.outputs.base_ref_branch}} | |
echo ${{steps.branch-names.outputs.current_branch}} | |
echo ${{steps.branch-names.outputs.default_branch}} | |
echo ${{steps.branch-names.outputs.head_ref_branch}} | |
echo ${{steps.branch-names.outputs.ref_branch}} | |
- name: Some stuff | |
run: | | |
echo some stuff | |
- name: Some other stuff | |
run: | | |
echo some other stuff |