Skip to content

Commit 3e14f99

Browse files
committed
use versions.toml
1 parent 38664f0 commit 3e14f99

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

.github/workflows/build.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,21 @@ jobs:
2222
BUILD_VERSION: ${{ env.BUILD_VERSION }}
2323

2424
steps:
25+
- name: Set up Homebrew
26+
id: set-up-homebrew
27+
uses: Homebrew/actions/setup-homebrew@master
28+
2529
- name: checkout
2630
uses: actions/checkout@v4
2731

32+
- name: install dasel
33+
run: |
34+
brew install dasel
35+
cat $GITHUB_ENV
36+
2837
- name: extract version
2938
run: |
30-
version=`head -n1 gradle.properties`
39+
version=`dasel -r toml -f gradle/libs.versions.toml versions.processor`
3140
echo "BUILD_VERSION=${version#projectVersion=}" >> $GITHUB_ENV
3241
cat $GITHUB_ENV
3342

0 commit comments

Comments
 (0)