Skip to content

Commit 781311e

Browse files
committed
update git user for release action
see actions/checkout#13 (comment) also update the actions to non-deprecated versions
1 parent 0ae78f6 commit 781311e

File tree

4 files changed

+14
-11
lines changed

4 files changed

+14
-11
lines changed

.github/workflows/deploy.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
- name: Set up JDK 11 for Maven Central
18-
uses: actions/setup-java@v1
18+
uses: actions/setup-java@v2
1919
with:
20+
distribution: 'zulu'
2021
java-version: '11'
2122
architecture: x64
2223
server-id: ossrh
@@ -26,8 +27,8 @@ jobs:
2627
server-password: MAVEN_CENTRAL_TOKEN
2728
- name: Setup git profile
2829
run: |
29-
git config --global user.name github-actions
30-
git config --global user.email github-actions@github.com
30+
git config --global user.name "github-actions[bot]"
31+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
3132
- name: Publish Snapshot to Maven Central
3233
run: mvn deploy -B -Possrh
3334
env:

.github/workflows/maven.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
- name: Set up JDK 11
18-
uses: actions/setup-java@v1
18+
uses: actions/setup-java@v2
1919
with:
20+
distribution: 'zulu'
2021
java-version: '11'
2122
architecture: x64
2223
- name: Build with Maven

.github/workflows/release.yml

+5-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v3
2020
- name: Set up JDK 11
21-
uses: actions/setup-java@v1
21+
uses: actions/setup-java@v2
2222
with:
23+
distribution: 'zulu'
2324
java-version: '11'
2425
architecture: x64
2526
server-id: ossrh
@@ -29,8 +30,8 @@ jobs:
2930
server-password: MAVEN_CENTRAL_TOKEN
3031
- name: Setup git profile
3132
run: |
32-
git config user.name github-actions
33-
git config user.email github-actions@github.com
33+
git config --global user.name "github-actions[bot]"
34+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
3435
- name: Maven release
3536
run: mvn release:prepare release:perform -B -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -Possrh
3637
env:

RELEASING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
These actions can only be performed by someone with maintainer level access to the repository.
44

5-
1. Run the [Stage Release on Master Branch](https://github.com/hap-java/HAP-Java/actions/workflows/release.yml) Action
5+
1. Run the [Stage Release on Master Branch](https://github.com/hap-java/HAP-Java/actions/workflows/release.yml) Action with a version such as `2.0.2`
66
2. After this completes, find the release on the [Releases page](https://github.com/hap-java/HAP-Java/releases)
77
3. Edit the release to include the changelog details

0 commit comments

Comments
 (0)