Skip to content

Commit

Permalink
Use Grafle actions using major version
Browse files Browse the repository at this point in the history
  • Loading branch information
platan committed Feb 29, 2024
1 parent 9113d65 commit f6895ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
java-version: '11'
distribution: 'temurin'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@83cf5fdbbf627c8da6fec32f28db58967a3136ac
uses: gradle/wrapper-validation-action@v2
- name: Get current version
id: current-version
# $VERSION should contain something like "Project version: 0.4.1-SNAPSHOT"
Expand All @@ -30,7 +30,7 @@ jobs:
echo "currentVersionInfo=$VERSION" >> "$GITHUB_OUTPUT"
- name: Publish package to Sonatype
if: ${{ contains(steps.current-version.outputs.currentVersionInfo, 'SNAPSHOT') }}
uses: gradle/gradle-build-action@a8f75513eafdebd8141bd1cd4e30fcd194af8dfa
uses: gradle/gradle-build-action@v3
with:
arguments: :tests-execution-chart-commons:publishToSonatype -i
env:
Expand Down

0 comments on commit f6895ce

Please sign in to comment.