Skip to content

Commit a0b8c99

Browse files
committed
impossible to extract version from pom with dasel
1 parent ff29838 commit a0b8c99

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ jobs:
2929
- name: checkout
3030
uses: actions/checkout@v4
3131

32-
- name: install dasel
33-
run: |
34-
brew install dasel
35-
cat $GITHUB_ENV
32+
# - name: install dasel
33+
# run: |
34+
# brew install dasel
35+
# cat $GITHUB_ENV
3636

3737
- name: extract version
3838
run: |
39-
version=`cat pom.xml | dasel -i xml 'project.version'`
39+
version=`yq -p xml -oy e '.project.version' pom.xml`
4040
echo "BUILD_VERSION=${version#projectVersion=}" >> $GITHUB_ENV
4141
cat $GITHUB_ENV
4242

0 commit comments

Comments
 (0)