Skip to content

Commit

Permalink
Update maven build action
Browse files Browse the repository at this point in the history
  • Loading branch information
arniesaha committed Nov 24, 2023
1 parent 0b57131 commit c28f75e
Showing 1 changed file with 13 additions and 26 deletions.
39 changes: 13 additions & 26 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: get_branch

- name: Build with Maven
- name: Create Maven Settings
uses: s4u/[email protected]
with:
servers: |
Expand All @@ -61,31 +61,18 @@ jobs:
"username": "atlan-ci",
"password": "${{ secrets.my_pat }}"
}]
# run: |
# branch_name=${{ steps.get_branch.outputs.branch }}
# if [[ $branch_name == 'main' || $branch_name == 'master' || $branch_name == 'lineageondemand' ]]
# then
# echo "build without dashboard"
# chmod +x ./build.sh && ./build.sh build_without_dashboard
# else
# echo "build with dashboard"
# chmod +x ./build.sh && ./build.sh
# fi

# run: |
# branch_name=${{ steps.get_branch.outputs.branch }}
# if [[ $branch_name == 'main' || $branch_name == 'master' || $branch_name == 'lineageondemand' ]]
# then
# echo "build without dashboard"
# chmod +x ./build.sh && ./build.sh build_without_dashboard
# else
# echo "build with dashboard"
# chmod +x ./build.sh && ./build.sh
# fi
# env:
# GITHUB_USER_REF: $GITHUB_ACTOR
# GITHUB_TOKEN_REF: ${{ secrets.my_pat }}

- name: Build with Maven
run: |
branch_name=${{ steps.get_branch.outputs.branch }}
if [[ $branch_name == 'main' || $branch_name == 'master' || $branch_name == 'lineageondemand' ]]
then
echo "build without dashboard"
chmod +x ./build.sh && ./build.sh build_without_dashboard
else
echo "build with dashboard"
chmod +x ./build.sh && ./build.sh
fi

- run: echo "REPOSITORY_NAME=`echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}' | sed -e "s/:refs//"`" >> $GITHUB_ENV
Expand Down

0 comments on commit c28f75e

Please sign in to comment.