From f3ecf326f9643a2e70ae2624fe860b1af975c45f Mon Sep 17 00:00:00 2001 From: MunJangHun <105299421+moondev03@users.noreply.github.com> Date: Wed, 7 Aug 2024 06:29:51 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20GitHub=20Action=20|=20Upda?= =?UTF-8?q?te=20Increment=20Version=20Code=20Logic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/versioning-and-deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/versioning-and-deployment.yaml b/.github/workflows/versioning-and-deployment.yaml index 596f0e8..f03ae46 100644 --- a/.github/workflows/versioning-and-deployment.yaml +++ b/.github/workflows/versioning-and-deployment.yaml @@ -24,13 +24,13 @@ jobs: id: update_version_code run: | # Get the current versionCode from build.gradle - VERSION_CODE=$(grep versionCode .Nabi/presentation/build.gradle.kts | sed 's/[^0-9]*//g') + VERSION_CODE=$(grep versionCode ./Nabi/presentation/build.gradle.kts | sed 's/[^0-9]*//g') # Increment the versionCode NEW_VERSION_CODE=$((VERSION_CODE + 1)) # Replace the old versionCode with the new one in build.gradle - sed -i "s/versionCode $VERSION_CODE/versionCode $NEW_VERSION_CODE/" .Nabi/presentation/build.gradle.kts + sed -i "s/versionCode $VERSION_CODE/versionCode $NEW_VERSION_CODE/" ./Nabi/presentation/build.gradle.kts # Check if there are changes to commit if [ $(git status --porcelain | wc -l) -gt 0 ]; then