Skip to content

Commit

Permalink
Attempt to distinguish tags from branches.
Browse files Browse the repository at this point in the history
  • Loading branch information
nealkruis committed Mar 14, 2023
1 parent e92307d commit 703d157
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/actions/build-kiva/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ runs:
uses: tj-actions/[email protected]
id: branch-name
- name: Save branch name
run: echo "SRC_BRANCH=${{steps.branch-name.outputs.current_branch}}" >> $GITHUB_ENV
run: |
if ${{steps.branch-name.outputs.is_tag}} == 'true'; then
echo "SRC_BRANCH=${{steps.branch-name.outputs.tag}}" >> $GITHUB_ENV
else
echo "SRC_BRANCH=${{steps.branch-name.outputs.current_branch}}" >> $GITHUB_ENV
fi
shell: bash
- name: Create Build Directory
run: cmake -E make_directory ${{github.workspace}}/${{inputs.build-directory}}
Expand Down

0 comments on commit 703d157

Please sign in to comment.