@@ -44,16 +44,18 @@ jobs:
4444
4545 - name : Bump Version Number
4646 run : |
47- mvn --no-transfer-progress versions:set versions:commit -DnewVersion="${{ github.event.inputs.version } }"
48- mvn --no-transfer-progress versions:set versions:commit -DnewVersion="${{ github.event.inputs.version } }" -pl eclipse_plugin
47+ mvn --no-transfer-progress versions:set versions:commit -DnewVersion="${GITHUB_EVENT_INPUTS_VERSION }"
48+ mvn --no-transfer-progress versions:set versions:commit -DnewVersion="${GITHUB_EVENT_INPUTS_VERSION }" -pl eclipse_plugin
4949 mvn tycho-versions:update-eclipse-metadata -pl eclipse_plugin
5050 git ls-files | grep -E '(pom.xml|MANIFEST.MF)$' | xargs git add
51- git config --global user.email "${{ github.actor } }@users.noreply.github.com"
52- git config --global user.name "${{ github.actor } }"
53- git commit -m "Release google-java-format ${{ github.event.inputs.version } }"
54- git tag "v${{ github.event.inputs.version } }"
51+ git config --global user.email "${GITHUB_ACTOR }@users.noreply.github.com"
52+ git config --global user.name "${GITHUB_ACTOR }"
53+ git commit -m "Release google-java-format ${GITHUB_EVENT_INPUTS_VERSION }"
54+ git tag "v${GITHUB_EVENT_INPUTS_VERSION }"
5555 echo "TARGET_COMMITISH=$(git rev-parse HEAD)" >> $GITHUB_ENV
56- git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/google/google-java-format.git
56+ git remote set-url origin https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com/google/google-java-format.git
57+ env :
58+ GITHUB_EVENT_INPUTS_VERSION : ${{ github.event.inputs.version }}
5759
5860 - name : Deploy to Sonatype staging
5961 env :
6769
6870 - name : Push tag
6971 run : |
70- git push origin "v${{ github.event.inputs.version }}"
72+ git push origin "v${GITHUB_EVENT_INPUTS_VERSION}"
73+ env :
74+ GITHUB_EVENT_INPUTS_VERSION : ${{ github.event.inputs.version }}
7175
7276 - name : Add Artifacts to Release Entry
7377 uses : softprops/action-gh-release@v0.1.14
0 commit comments