We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 376821a commit d6f8b98Copy full SHA for d6f8b98
.github/workflows/publish.yml
@@ -17,11 +17,9 @@ jobs:
17
uses: gradle/actions/setup-gradle@v4
18
- name: Publish Library
19
run: |
20
- echo ${{ github.ref }}
21
- GRADLE_REPORTED_VERSION=$(./gradlew printVersion -q)
22
- echo $GRADLE_REPORTED_VERSION
23
- if [ "${{ github.ref }}" != "refs/tags/$GRADLE_REPORTED_VERSION" ]; then
24
- echo "Error: Release tag and gradle version are not equal."
+ GRADLE_REPORTED_VERSION="refs/tags/$(./gradlew printVersion -q)"
+ if [ ${{ github.ref }} != $GRADLE_REPORTED_VERSION ]; then
+ echo "Error: Release tag (${{ github.ref }}) and gradle version ($GRADLE_REPORTED_VERSION) are not equal."
25
exit 1
26
fi
27
./gradlew assemble publishAndReleaseToMavenCentral --no-configuration-cache --no-parallel
0 commit comments