Skip to content

Commit

Permalink
Convert branch name to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
krsoninikhil committed Jul 24, 2024
1 parent 2042bdd commit 01ab5ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
restore-keys: ${{ runner.os }}-m2

- name: Get branch name
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/} | awk '{print tolower($0)}')"
id: get_branch

- name: Create Maven Settings
Expand All @@ -64,7 +64,7 @@ jobs:
- name: Build with Maven
run: |
branch_name=${{ steps.get_branch.outputs.branch }}
branch_name='${{ steps.get_branch.outputs.branch }}'
if [[ $branch_name == 'main' || $branch_name == 'master' || $branch_name == 'lineageondemand' ]]
then
echo "build without dashboard"
Expand Down

0 comments on commit 01ab5ca

Please sign in to comment.