Skip to content

Commit

Permalink
ci: change v-version to version for Kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziedelth committed Sep 4, 2024
1 parent 16952b4 commit 0e04401
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:

outputs:
v-version: ${{ steps.version.outputs.v-version }}
version: ${{ steps.version.outputs.version }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -83,7 +84,7 @@ jobs:
PROJECT_VERSION=$(cat 'build.gradle.kts' | grep -oP 'version = "\K[^\\"]*' | head -n 1)
# Update the file
sed -i "s|$PROJECT_VERSION|${{ needs.upgrade-version.outputs.v-version }}|g" build.gradle.kts
sed -i "s|$PROJECT_VERSION|${{ needs.upgrade-version.outputs.version }}|g" build.gradle.kts
- name: Build
run: gradle clean installDist
Expand Down Expand Up @@ -116,15 +117,15 @@ jobs:
PROJECT_VERSION=$(cat 'build.gradle.kts' | grep -oP 'version = "\K[^\\"]*' | head -n 1)
# Update the file
sed -i "s|$PROJECT_VERSION|${{ needs.upgrade-version.outputs.v-version }}|g" build.gradle.kts
sed -i "s|$PROJECT_VERSION|${{ needs.upgrade-version.outputs.version }}|g" build.gradle.kts
# Set up Git
git config user.name Ziedelth
git config user.email ${{ secrets.USER_EMAIL }}
# Commit the changes
git add build.gradle.kts
git commit -m "Update version to ${{ needs.upgrade-version.outputs.v-version }}"
git commit -m "Update version to ${{ needs.upgrade-version.outputs.version }}"
- name: Push changes
uses: ad-m/[email protected]
Expand Down

0 comments on commit 0e04401

Please sign in to comment.