Skip to content

Commit ff29838

Browse files
committed
fix version extraction
1 parent fc87f0b commit ff29838

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ jobs:
3636
3737
- name: extract version
3838
run: |
39-
version=`dasel -r xml -f pom.xml project.version`
39+
version=`cat pom.xml | dasel -i xml 'project.version'`
4040
echo "BUILD_VERSION=${version#projectVersion=}" >> $GITHUB_ENV
4141
cat $GITHUB_ENV
4242
4343
- name: find maven home
4444
run: |
45-
maven_home=`./mvnw --version | sed -n '2p' | dasel -r yaml 'Maven home'`
45+
maven_home=`./mvnw --version | sed -n '2p' | dasel -i yaml 'Maven home'`
4646
echo "MAVEN_HOME=${maven_home}" >> $GITHUB_ENV
4747
cat $GITHUB_ENV
4848

0 commit comments

Comments
 (0)