Skip to content

Commit

Permalink
Upgrade setup-java to v3 (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
markelliot authored Dec 28, 2022
1 parent 416649c commit d479352
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 16 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/check-for-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Update Deps
on:
workflow_dispatch: {}
schedule:
- cron: '0 0/6 * * *'
- cron: "0 0/6 * * *"

jobs:
check:
Expand All @@ -11,13 +11,12 @@ jobs:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_PUSH_TO_REPO_TOKEN }}
- uses: actions/setup-java@v2
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
java-version: "17"
distribution: "zulu"
- uses: markelliot/update-gradle-deps@v1
with:
push-to-repo-token: ${{ secrets.GH_PUSH_TO_REPO_TOKEN }}
commit-user: mellbot
commit-email: [email protected]

10 changes: 5 additions & 5 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ jobs:
build:
name: Check PR
runs-on: ubuntu-latest
permissions:
permissions:
contents: read
packages: write
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
java-version: "17"
distribution: "zulu"
- name: Build
run: ./gradlew --no-daemon build
11 changes: 5 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
permissions:
contents: read
packages: write
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'zulu'
java-version: "17"
distribution: "zulu"
- name: Build
run: ./gradlew --no-daemon build
- name: Publish
Expand All @@ -25,4 +25,3 @@ jobs:
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}

0 comments on commit d479352

Please sign in to comment.