Skip to content

Commit

Permalink
Update release-v2.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yvasyliev authored Nov 15, 2023
1 parent 6ff505f commit 6a16d9f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
java-version: '17'
distribution: 'corretto'
cache: maven
- name: Build with Maven
- name: Test with Maven
env:
REDDIT_SUBREDDIT: ${{ secrets.REDDIT_SUBREDDIT }}
REDDIT_CLIENT_ID: ${{ secrets.REDDIT_CLIENT_ID }}
Expand Down Expand Up @@ -110,6 +110,15 @@ jobs:
echo "incremented_patch_version=patch_version"
echo "New patch version is \`$patch_version\`" >> "$GITHUB_STEP_SUMMARY"
echo "NEW_VERSION=$(echo "$CURRENT_VERSION" | grep -oP '^\d+\.\d+\.')$patch_version" >> "$GITHUB_ENV"
- name: Increment minor version
if: github.event.inputs.release_type == 'minor'
run: |
minor_version=$(echo ${{ env.VERSION }} | grep -oP "^\d+\.\K\d+")
echo "minor_version=$minor_version"
echo "Minor version is \`$minor_version\`" >> "$GITHUB_STEP_SUMMARY"
minor_version=$((minor_version + 1))
echo "incremented_minor_version=$minor_version"
echo "NEW_VERSION=$(echo $CURRENT_VERSION | grep -oP '^\d+\.')$minor_version.0" >> $GITHUB_ENV
- name: Get new version
id: get-new-version
env:
Expand Down

0 comments on commit 6a16d9f

Please sign in to comment.