Skip to content

Commit d8fcc92

Browse files
authored
Merge pull request #162 from YAPP-Github/BOOK-289-chore/#161
fix: CD steps내에 versionName 추출 로직 변경
2 parents 5a0aa4a + a1894ce commit d8fcc92

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/android-cd.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ jobs:
3838
- name: Generate google-services.json
3939
run: echo '${{ secrets.GOOGLE_SERVICES }}' | base64 -d > ./app/google-services.json
4040

41-
- name: Extract Version Name from ApplicationConstants.kt
41+
- name: Extract Version Name from libs.versions.toml
4242
run: |
4343
set -euo pipefail
44-
VERSION=$(grep "VERSION_NAME" build-logic/src/main/kotlin/com/ninecraft/booket/convention/ApplicationConstants.kt | sed -E 's/.*VERSION_NAME\s*=\s*"([^"]+)".*/\1/')
44+
VERSION=$(grep "versionName" gradle/libs.versions.toml | sed -E 's/.*versionName\s*=\s*"([^"]+)".*/\1/')
4545
if [[ -z "$VERSION" ]]; then
46-
echo "Error: ApplicationConstants.kt에서 VERSION_NAME 값을 추출하지 못했습니다." >&2
46+
echo "Error: toml에서 versionName 값을 추출하지 못했습니다." >&2
4747
exit 1
4848
fi
4949
echo "version=v${VERSION}" >> "$GITHUB_OUTPUT"
50-
echo "Version extracted from ApplicationConstants.kt: v${VERSION}"
50+
echo "Version extracted from toml: v${VERSION}"
5151
id: extract_version
5252

5353
- name: Generate Firebase Release Note

0 commit comments

Comments
 (0)