Skip to content

Commit 47e3e87

Browse files
committed
Update GitHub action versions
1 parent 873286c commit 47e3e87

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,24 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
java: [ 8, 8.0.x, 9.0.x, 11.0.x, 14 ]
14+
java: [8, 11, 17]
1515
os: [ubuntu-latest, macos-latest, windows-latest]
1616

1717
steps:
1818
- name: Checkout the repo
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2020

2121
- name: Setup Java
22-
uses: actions/setup-java@v1
22+
uses: actions/setup-java@v3
2323
with:
24-
java-version: ${{matrix.java}}
24+
java-version: ${{ matrix.java }}
25+
distribution: 'zulu'
2526

2627
- name: Grant execute permission for gradlew
2728
run: chmod +x gradlew
2829

2930
- name: Cache Gradle packages
30-
uses: actions/cache@v2
31+
uses: actions/cache@v3
3132
with:
3233
path: ~/.gradle/caches
3334
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
@@ -37,4 +38,4 @@ jobs:
3738
run: ./gradlew build
3839

3940
- name: Run Codecov
40-
uses: codecov/codecov-action@v1
41+
uses: codecov/codecov-action@v2

.github/workflows/publish.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout the repo
10-
uses: actions/checkout@v2
10+
uses: actions/checkout@v3
1111
with:
1212
ref: ${{ github.event.release.target_commitish }}
1313
- name: Set up Python
14-
uses: actions/setup-python@v2
14+
uses: actions/setup-python@v3
1515
with:
1616
python-version: 3.8
1717
- name: Install bump2version
@@ -22,15 +22,18 @@ jobs:
2222
git config --global github.token ${{ secrets.GITHUB_TOKEN }}
2323
pip install bump2version
2424
- name: Bump Version
25-
run: bump2version --new-version ${{ github.event.release.tag_name }} patch && git tag ${{ github.event.release.tag_name }} -f && git push && git push --tags origin --force
25+
run: bump2version --new-version ${{ github.event.release.tag_name }} patch &&
26+
git tag ${{ github.event.release.tag_name }} -f &&
27+
git push && git push --tags origin --force
2628
- name: Setup Java
27-
uses: actions/setup-java@v1
29+
uses: actions/setup-java@v3
2830
with:
29-
java-version: 8
31+
java-version: 17
32+
distribution: 'temurin'
3033
- name: Grant execute permission for gradlew
3134
run: chmod +x gradlew
3235
- name: Cache Gradle packages
33-
uses: actions/cache@v2
36+
uses: actions/cache@v3
3437
with:
3538
path: ~/.gradle/caches
3639
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}

0 commit comments

Comments
 (0)