Skip to content

Commit

Permalink
Update action
Browse files Browse the repository at this point in the history
  • Loading branch information
sinattieng committed Sep 25, 2023
1 parent e765488 commit 888e145
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
inputs:
version:
description: "Version number"
permissions: read-all
permissions: write-all
jobs:
maven-release:
runs-on: ubuntu-latest
Expand All @@ -16,8 +16,8 @@ jobs:
java-version: '17'
cache: 'maven'
server-id: 'github' # Value of the distributionManagement/repository/id field of the pom.xml
- name: Create settings
run: echo "<settings><interactiveMode>false</interactiveMode><profiles/><servers><server><id>github</id><configuration><httpHeaders><property><name>Authorization</name><value>Bearer ${{ secrets.GITHUB_TOKEN }}</value></property></httpHeaders></configuration></server></servers><mirrors /></settings>" > /home/runner/.m2/settings.xml
# - name: Create settings
# run: echo "<settings><interactiveMode>false</interactiveMode><profiles/><servers><server><id>github</id><configuration><httpHeaders><property><name>Authorization</name><value>Bearer ${{ secrets.GITHUB_TOKEN }}</value></property></httpHeaders></configuration></server></servers><mirrors /></settings>" > /home/runner/.m2/settings.xml
- name: Check
run: java -version && mvn -version && cat /home/runner/.m2/settings.xml
- name: Configure Git user
Expand Down

0 comments on commit 888e145

Please sign in to comment.