Skip to content

Commit 6accfa2

Browse files
committed
chore: update update-java workflow to use github.token and improve Gradle wrapper update steps
1 parent 3340353 commit 6accfa2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/update-java.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
packages: read
2121
env:
2222
ORG_GRADLE_PROJECT_ghUsername: ${{ github.actor }}
23-
ORG_GRADLE_PROJECT_ghPassword: ${{ secrets.GITHUB_TOKEN }}
23+
ORG_GRADLE_PROJECT_ghPassword: ${{ github.token }}
2424
steps:
2525
- uses: actions/checkout@v6.0.1
2626
with:
@@ -35,8 +35,13 @@ jobs:
3535
with:
3636
gradle-version: current
3737
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
38+
# update the version of gradlew
3839
- run: gradle wrapper --write-locks
39-
- run: make ci-update-java
40+
- run: find . -name '*gradle.lockfile' -delete
41+
# fetch the actual wrapper and then update the gradlew scripts
42+
- run: ./gradlew wrapper --write-locks && ./gradlew wrapper
43+
- run: ./gradlew dependencies --write-locks | grep -e FAILED -e https
44+
- run: ./gradlew build --write-locks
4045
- run: |
4146
echo "stdout<<EOF" >> $GITHUB_OUTPUT
4247
git status --porcelain=1 | tee --append $GITHUB_OUTPUT

0 commit comments

Comments
 (0)