|
19 | 19 | unset JAVA_HOME |
20 | 20 | export PATH=$(echo "$PATH" | tr ':' '\n' | grep -v '/usr/lib/jvm' | paste -sd:) |
21 | 21 | - name: Checkout repository |
22 | | - uses: actions/checkout@v5 |
| 22 | + uses: actions/checkout@v6 |
23 | 23 | with: |
24 | 24 | token: ${{ secrets.GH_TOKEN }} |
25 | 25 | - uses: gradle/actions/wrapper-validation@v5 |
@@ -94,11 +94,14 @@ jobs: |
94 | 94 | GH_USERNAME: ${{ secrets.GH_USERNAME }} |
95 | 95 | - name: Export Gradle Properties |
96 | 96 | uses: micronaut-projects/github-actions/export-gradle-properties@master |
| 97 | + - name: LATEST_TAG |
| 98 | + run: | |
| 99 | + echo "LATEST_TAG=$(curl -s -L -H 'Accept: application/vnd.github+json' -H 'X-GitHub-Api-Version: 2022-11-28' https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r '.tag_name')" >> $GITHUB_ENV |
97 | 100 | - name: Publish to Github Pages |
98 | 101 | if: success() |
99 | 102 | uses: micronaut-projects/github-pages-deploy-action@master |
100 | 103 | env: |
101 | | - BETA: ${{ !(github.event.release.target_commitish == github.event.repository.default_branch) || contains(steps.release_version.outputs.release_version, 'M') || contains(steps.release_version.outputs.release_version, 'RC') }} |
| 104 | + BETA: ${{ !(github.event.release.tag_name == env.LATEST_TAG) || github.event.release.draft || github.event.release.prerelease || contains(steps.release_version.outputs.release_version, 'M') || contains(steps.release_version.outputs.release_version, 'RC') }} |
102 | 105 | GH_TOKEN: ${{ secrets.GH_TOKEN }} |
103 | 106 | BRANCH: gh-pages |
104 | 107 | FOLDER: build/docs |
@@ -153,7 +156,7 @@ jobs: |
153 | 156 | if: startsWith(github.ref, 'refs/tags/') |
154 | 157 | steps: |
155 | 158 | - name: Checkout repository |
156 | | - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| 159 | + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 |
157 | 160 | - name: Download artifacts |
158 | 161 | uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0 |
159 | 162 | with: |
|
0 commit comments