Skip to content

Commit b0e24aa

Browse files
committed
workflow updates
1 parent ea88501 commit b0e24aa

1 file changed

Lines changed: 6 additions & 17 deletions

File tree

‎.github/workflows/checks.yml‎

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
ci:
1313
runs-on: ubuntu-latest
1414

15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
1518
strategy:
1619
matrix:
1720
java-version: [24]
@@ -26,23 +29,9 @@ jobs:
2629
java-version: ${{ matrix.java-version }}
2730
distribution: "temurin"
2831
cache: "maven"
29-
30-
- name: Set up settings.xml
31-
run: |
32-
mkdir -p ~/.m2
33-
echo '<?xml version="1.0" encoding="UTF-8"?>
34-
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
35-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
36-
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
37-
http://maven.apache.org/xsd/settings-1.0.0.xsd">
38-
<servers>
39-
<server>
40-
<id>github</id>
41-
<username>${{ secrets.GH_USERNAME }}</username>
42-
<password>${{ secrets.GH_TOKEN }}</password>
43-
</server>
44-
</servers>
45-
</settings>' > ~/.m2/settings.xml
32+
server-id: github
33+
server-username: GITHUB_ACTOR
34+
server-password: GITHUB_TOKEN
4635

4736
- name: Build with Maven
4837
run: mvn clean compile

0 commit comments

Comments
 (0)