Skip to content

Commit

Permalink
action to be able to make release build outside of master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
npq7721 committed May 29, 2024
1 parent e9ef893 commit a6de92a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ jobs:
run: |
if [[ "$GITHUB_EVENT_NAME" == "pull_request" ]] || [[ "$GITHUB_REF" == *develop ]] || [[ "$GITHUB_REF" == *ft/* ]] || [[ "$GITHUB_REF" == *bug/* ]]; then
version=${{ steps.versions.outputs.snapshot-version }}
elif [[ "$GITHUB_EVENT_NAME" != "pull_request" ]] && [[ "$GITHUB_REF" == *"release/"* ]]; then
elif [[ "$GITHUB_EVENT_NAME" != "pull_request" ]] && [[ "$GITHUB_REF" == *"release/candidate"* ]]; then
version=${{ steps.versions.outputs.candidate-version }}
elif [[ "$GITHUB_EVENT_NAME" != "pull_request" ]] && [[ "$GITHUB_REF" == "refs/heads/master" ]]; then
elif [[ "$GITHUB_EVENT_NAME" != "pull_request" ]] && ([[ "$GITHUB_REF" == "refs/heads/master" ]] || [[ "$GITHUB_REF" == *"release/"* ]]); then
version=${{ steps.versions.outputs.release-version }}
fi
echo "version is: [$version]"
Expand Down

0 comments on commit a6de92a

Please sign in to comment.