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 ae53759 commit af2fbfd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,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}' | sed 's/,//g' | 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 af2fbfd

Please sign in to comment.