Skip to content

Commit 34fcd36

Browse files
committed
Trying again to get version
1 parent 11e4e77 commit 34fcd36

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ jobs:
4848
cache: 'maven'
4949
- name: version
5050
run: |
51-
export JCODINGS_VERSION=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout`
52-
echo "version=$JCODINGS_VERSION" >> $GITHUB_OUTPUT
51+
echo version=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout` >> $GITHUB_OUTPUT
5352
5453
snapshot:
5554

@@ -69,10 +68,10 @@ jobs:
6968
server-username: MAVEN_USERNAME
7069
server-password: MAVEN_PASSWORD
7170

72-
- run: echo $JCODINGS_VERSION
71+
- run: echo ${{ needs.version.outputs.version }}
7372
- name: Publish package
7473
run: mvn -ntp deploy
7574
env:
7675
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
7776
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
78-
if: ${{ contains(env.JCODINGS_VERSION, 'SNAPSHOT') && github.ref == 'refs/heads/master' && github.repository == 'jruby/jcodings' }}
77+
if: ${{ contains(needs.version.outputs.version, 'SNAPSHOT') && github.ref == 'refs/heads/master' && github.repository == 'jruby/jcodings' }}

0 commit comments

Comments
 (0)