Skip to content

Commit

Permalink
Address PR comments.
Browse files Browse the repository at this point in the history
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
  • Loading branch information
Yury-Fridlyand committed Jul 10, 2024
1 parent 9356c99 commit 9428a19
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/java-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,15 @@ jobs:
- name: Set the release version
shell: bash
run: |
echo "RELEASE_VERSION=1.0.0" >> $GITHUB_ENV
if ${{ github.event_name == 'pull_request' }}; then
R_VERSION="255.255.255"
elif ${{ github.event_name == 'workflow_dispatch' }}; then
R_VERSION="${{ env.INPUT_VERSION }}"
else
R_VERSION=${GITHUB_REF:11}
fi
echo "RELEASE_VERSION=${R_VERSION}" >> $GITHUB_ENV
echo "Release version detected: $R_VERSION"
env:
EVENT_NAME: ${{ github.event_name }}
INPUT_VERSION: ${{ github.event.inputs.version }}
Expand Down

0 comments on commit 9428a19

Please sign in to comment.