Skip to content

Commit

Permalink
Update GH actions to their latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
renner committed May 24, 2024
1 parent 374c077 commit 998c492
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ jobs:
options: --name saltminion2 --link saltmaster:salt

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '11'
- name: Build and test with Maven
run: mvn checkstyle:check javadoc:javadoc test package
- name: Get branch name or tag
if: success()
uses: tj-actions/branch-names@v5
uses: tj-actions/branch-names@v8
id: branch-name
- name: Publish javadoc for the default branch
if: success() && steps.branch-name.outputs.is_default == 'true'
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/apidocs
Expand All @@ -49,7 +49,7 @@ jobs:
user_email: 'github-actions[bot]@users.noreply.github.com'
- name: Publish javadoc for a tagged release
if: success() && steps.branch-name.outputs.is_tag == 'true'
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/apidocs
Expand Down

0 comments on commit 998c492

Please sign in to comment.