Skip to content

Commit

Permalink
Read app version
Browse files Browse the repository at this point in the history
  • Loading branch information
andresmr committed Dec 13, 2023
1 parent 9e01b07 commit a266b9b
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@ jobs:
- name: Change wrapper permissions
run: chmod +x ./gradlew

- name: Read version name from file
working-directory: ./gradle
id: read-version
run: echo "::set-output name=vName::$(grep 'vName' libs.versions.toml | awk -F' = ' '{print $2}' | tr -d '"')"

- name: Use version name in the next step
run: echo "Version name is ${{ steps.read-version.outputs.vName }}"

# Run check style
- name: Kotlin checkstyle
run: ./gradlew ktlintCheck
Expand Down Expand Up @@ -89,8 +81,7 @@ jobs:
- name: Read version name from file
working-directory: ./gradle
id: read-version
# run: echo "::set-output name=vName::$(awk -F' *= *' '/vName/{print $2}' libs.versions.toml)"
run: echo "::set-output name=vName::$(grep 'vName' libs.versions.toml | awk -F' = ' '{print $2}' | sed 's/,//g')"
run: echo "::set-output name=vName::$(grep 'vName' libs.versions.toml | awk -F' = ' '{print $2}' | tr -d '"')"

- name: Use version name in the next step
run: echo "Version name is ${{ steps.read-version.outputs.vName }}"
Expand Down

0 comments on commit a266b9b

Please sign in to comment.