Skip to content

Commit 6bf1ad6

Browse files
committed
Update workflows and readme
1 parent a1f3fd5 commit 6bf1ad6

File tree

7 files changed

+29
-28
lines changed

7 files changed

+29
-28
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
- [ ] Add JavaDocs and other comments explaining the behavior.
99
- [ ] When adding or updating methods that fetch entities, add `@link` JavaDoc entries to the relevant documentation on https://docs.github.com/en/rest .
1010
- [ ] Add tests that cover any added or changed code. This generally requires capturing snapshot test data. See [CONTRIBUTING.md](CONTRIBUTING.md) for details.
11-
- [ ] Run `mvn -D enable-ci clean install site` locally. If this command doesn't succeed, your change will not pass CI.
11+
- [ ] Run `mvn -D enable-ci clean install site "-Dsurefire.argLine=--add-opens java.base/java.net=ALL-UNNAMED"` locally. If this command doesn't succeed, your change will not pass CI.
1212
- [ ] Push your changes to a branch other than `main`. You will create your PR from that branch.
1313

1414
# When creating a PR:

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ jobs:
4242

4343
steps:
4444
- name: Set up JDK
45-
uses: actions/setup-java@v4
45+
uses: actions/setup-java@v5
4646
with:
4747
distribution: 'temurin'
4848
java-version: 17
4949

5050
- name: Checkout repository
51-
uses: actions/checkout@v4
51+
uses: actions/checkout@v5
5252

5353
# Initializes the CodeQL tools for scanning.
5454
- name: Initialize CodeQL

.github/workflows/create_release_tag_and_pr.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010
create_release_tag:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v5
1414
with:
1515
fetch-depth: 0
1616

1717
- name: Set up Maven Central Repository
18-
uses: actions/setup-java@v4
18+
uses: actions/setup-java@v5
1919
with:
2020
java-version: '17'
2121
distribution: 'temurin'
@@ -35,7 +35,7 @@ jobs:
3535
mvn -B versions:set versions:commit -DremoveSnapshot
3636
echo "version=$(mvn -B help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT
3737
38-
- uses: stefanzweifel/git-auto-commit-action@v5
38+
- uses: stefanzweifel/git-auto-commit-action@v6
3939
with:
4040
commit_message: "Prepare release (${{ github.actor }}): github-api-${{ steps.release.outputs.version }}"
4141
tagging_message: 'github-api-${{ steps.release.outputs.version }}'
@@ -45,7 +45,7 @@ jobs:
4545
run: |
4646
mvn versions:set versions:commit -DnextSnapshot
4747
48-
- uses: stefanzweifel/git-auto-commit-action@v5
48+
- uses: stefanzweifel/git-auto-commit-action@v6
4949
with:
5050
commit_message: "Prepare for next development iteration"
5151
branch: staging/${{ github.ref_name }}

.github/workflows/maven-build.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
strategy:
2626
fail-fast: true
2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@v5
2929
- name: Set up JDK
30-
uses: actions/setup-java@v4
30+
uses: actions/setup-java@v5
3131
with:
3232
java-version: 17
3333
distribution: 'temurin'
@@ -47,9 +47,9 @@ jobs:
4747
strategy:
4848
fail-fast: false
4949
steps:
50-
- uses: actions/checkout@v4
50+
- uses: actions/checkout@v5
5151
- name: Set up JDK
52-
uses: actions/setup-java@v4
52+
uses: actions/setup-java@v5
5353
with:
5454
java-version: 17
5555
distribution: 'temurin'
@@ -71,9 +71,9 @@ jobs:
7171
os: [ ubuntu, windows ]
7272
java: [ 17, 21 ]
7373
steps:
74-
- uses: actions/checkout@v4
74+
- uses: actions/checkout@v5
7575
- name: Set up JDK
76-
uses: actions/setup-java@v4
76+
uses: actions/setup-java@v5
7777
with:
7878
java-version: ${{ matrix.java }}
7979
distribution: 'temurin'
@@ -101,13 +101,13 @@ jobs:
101101
needs: test
102102
runs-on: ubuntu-latest
103103
steps:
104-
- uses: actions/checkout@v4
105-
- uses: actions/download-artifact@v4
104+
- uses: actions/checkout@v5
105+
- uses: actions/download-artifact@v5
106106
with:
107107
name: maven-test-target-directory
108108
path: target
109109
- name: Codecov Report
110-
uses: codecov/codecov-action@v5.1.2
110+
uses: codecov/codecov-action@v5.5.0
111111
with:
112112
# Codecov token from https://app.codecov.io/gh/hub4j/github-api/settings
113113
token: ${{ secrets.CODECOV_TOKEN }}
@@ -138,13 +138,13 @@ jobs:
138138
needs: build
139139
runs-on: ubuntu-latest
140140
steps:
141-
- uses: actions/checkout@v4
142-
- uses: actions/download-artifact@v4
141+
- uses: actions/checkout@v5
142+
- uses: actions/download-artifact@v5
143143
with:
144144
name: maven-target-directory
145145
path: target
146146
- name: Set up JDK
147-
uses: actions/setup-java@v4
147+
uses: actions/setup-java@v5
148148
with:
149149
java-version: 11
150150
distribution: 'temurin'

.github/workflows/publish_release_branch.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1616
- name: Set up Maven Central Repository
17-
uses: actions/setup-java@v4
17+
uses: actions/setup-java@v5
1818
with:
1919
java-version: '17'
2020
distribution: 'temurin'
@@ -35,9 +35,9 @@ jobs:
3535
runs-on: ubuntu-latest
3636
needs: build
3737
steps:
38-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@v5
3939
- name: Set up Maven Central Repository
40-
uses: actions/setup-java@v4
40+
uses: actions/setup-java@v5
4141
with:
4242
java-version: '17'
4343
distribution: 'temurin'
@@ -55,13 +55,13 @@ jobs:
5555
MAVEN_USERNAME: ${{ secrets.OSSRH_TOKEN_USERNAME }}
5656
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN_PASSWORD }}
5757
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSPHRASE }}
58-
58+
5959
publish_gh_pages:
6060
runs-on: ubuntu-latest
6161
needs: build
6262
if: ${{ github.ref == 'refs/heads/release/v2.x' }}
6363
steps:
64-
- uses: actions/checkout@v4
64+
- uses: actions/checkout@v5
6565
with:
6666
fetch-depth: 0
6767

@@ -70,7 +70,7 @@ jobs:
7070
run: |
7171
echo "version=$(mvn -B help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT
7272
73-
- uses: actions/download-artifact@v4
73+
- uses: actions/download-artifact@v5
7474
with:
7575
name: maven-release-target-directory
7676
path: target
@@ -82,7 +82,7 @@ jobs:
8282
cp -r ./target/site/* ./
8383
8484
- name: Publish GH Pages
85-
uses: stefanzweifel/git-auto-commit-action@v5
85+
uses: stefanzweifel/git-auto-commit-action@v6
8686
with:
8787
commit_message: "Release (${{ github.actor }}): v${{ steps.release.outputs.version }}"
8888
branch: gh-pages

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ target
66
.classpath
77
.project
88
.settings/
9+
.metadata/
910
.DS_Store
1011

1112
dependency-reduced-pom.xml

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
[![codecov](https://codecov.io/gh/hub4j/github-api/branch/main/graph/badge.svg?token=j1jQqydZLJ)](https://codecov.io/gh/hub4j/github-api)
77

88

9-
See https://github-api.kohsuke.org/ for more details
9+
See https://hub4j.github.io/github-api/ for more details

0 commit comments

Comments
 (0)