Skip to content

Commit

Permalink
Update update-gradle-wrapper.yml - add setup-java for compatible java…
Browse files Browse the repository at this point in the history
… version (17+) (#292)
  • Loading branch information
ChrisCarini authored Sep 13, 2024
1 parent e8b243f commit 11aa2aa
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/update-gradle-wrapper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,22 @@ jobs:

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
timeout-minutes: 1
timeout-minutes: 1 # Setup Java environment for the next steps

- name: Setup Java
uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0
timeout-minutes: 5
with:
distribution: zulu
java-version: 21
cache: gradle

- name: Update Gradle Wrapper
uses: gradle-update/update-gradle-wrapper-action@0407394b9d173dfc9cf5695f9f560fef6d61a5fe # v1.0.20
with:
repo-token: ${{ secrets.GH_PAT_REPO_SCOPE_FOR_ACTIONS_THAT_OPEN_PRS }}
merge-method: SQUASH
# NOTE: Can not set reviewer to self (`ChrisCarini`) because using PAT for self.
# NOTE: Can not set reviewer to self (`ChrisCarini`) because using PAT for self.
# From Docs:
# Note that if you're using a Personal Access Token (PAT) as repo-token you cannot
# request a review from the user that the PAT belongs to.
Expand Down

0 comments on commit 11aa2aa

Please sign in to comment.