Skip to content

Commit

Permalink
Use latest major versions of setup-java and github-script GitHub …
Browse files Browse the repository at this point in the history
…Actions
  • Loading branch information
nvamelichev committed Mar 6, 2024
1 parent 195adc3 commit 7140604
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
Expand All @@ -28,13 +28,13 @@ jobs:
- name: Fail workflow if SDK version is snapshot
if: endsWith(env.YOJ_VERSION, 'SNAPSHOT')
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: core.setFailed('SNAPSHOT version cannot be published')

- name: Fail workflow if SDK version is not equal to tag name
if: format('v{0}', env.YOJ_VERSION) != github.ref_name
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: core.setFailed('Release name must be equal to project version')

Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
submodules: true

- name: Set up Maven Central Repository
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'temurin'
Expand Down

0 comments on commit 7140604

Please sign in to comment.