Skip to content

Commit

Permalink
github.actor and github.token
Browse files Browse the repository at this point in the history
  • Loading branch information
siom79 committed Nov 3, 2023
1 parent e3389fa commit 1543168
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/mvn-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ jobs:
git config --global user.name '${{ github.actor }}'
git config --global user.email '${{ github.actor }}@users.noreply.github.com'
mvn install
mvn site:site site:stage scm-publish:publish-scm -Dpassword=${{ secrets.GITHUB_TOKEN }}
mvn site:site site:stage scm-publish:publish-scm -Dgithub.actor=${{ github.actor } -Dgithub.token=${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@
<maven.compiler.target>1.8</maven.compiler.target>
<github.account>siom79</github.account>
<github.project>japicmp</github.project>
<github.actor>siom79</github.actor>
<github.token>secret</github.token>
<maven.site.skip>false</maven.site.skip>
<maven-api.version>3.6.3</maven-api.version>
<resolver.version>1.4.1</resolver.version> <!-- keep in sync with maven api version -->
Expand Down Expand Up @@ -400,7 +402,7 @@
</build>

<scm>
<connection>scm:git:https://github.com/${github.account}/${github.project}.git</connection>
<connection>scm:git:https://${github.actor}:${github.token}@github.com/${github.account}/${github.project}.git</connection>
<developerConnection>scm:git:https://github.com/${github.account}/${github.project}.git</developerConnection>
<url>https://github.com/${github.account}/${github.project}.git</url>
<tag>japicmp-base-0.15.7</tag>
Expand Down

0 comments on commit 1543168

Please sign in to comment.