44 push :
55 branches : [ master ]
66
7+ permissions :
8+ contents : write
9+ pull-requests : write
10+
711jobs :
8- check_code : # Validates the code (see develop .yml)
12+ check_code : # Validates the code (see checkBuild .yml)
913 runs-on : ubuntu-latest
1014 steps :
1115 - uses : actions/checkout@v3
5761 - name : Get version
5862 id : version
5963 run : |
60- echo "::set-output name=release::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
64+ version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
65+ echo "release=$version" >> $GITHUB_OUTPUT
66+ echo "releasenumber=${version//[!0-9]/}" >> $GITHUB_OUTPUT
6167
6268 - name : Commit and Push
6369 run : |
@@ -69,25 +75,23 @@ jobs:
6975
7076 - name : Create Release
7177 id : create_release
72- uses : actions/create-release@v1
73- env :
74- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
78+ uses : shogo82148/actions-create-release@v1
7579 with :
7680 tag_name : v${{ steps.version.outputs.release }}
7781 release_name : v${{ steps.version.outputs.release }}
7882 commitish : master
7983 body : |
80- ## Installation [](https://mvnrepository.com/artifact/com.xdev-software/xapi-db-postgresql)
84+ ## [Changelog](https://github.com/xdev-software/${{ github.event.repository.name }}/blob/develop/CHANGELOG.md#${{ steps.version.outputs.releasenumber }})
85+ See [Changelog#v${{ steps.version.outputs.release }}](https://github.com/xdev-software/${{ github.event.repository.name }}/blob/develop/CHANGELOG.md#${{ steps.version.outputs.releasenumber }}) for more information.
86+ ## Installation
8187 Add the following lines to your pom:
8288 ```XML
8389 <dependency>
84- <groupId>software .xdev</groupId>
85- <artifactId>xapi-db-postgresql </artifactId>
90+ <groupId>com .xdev-software </groupId>
91+ <artifactId>${{ github.event.repository.name }} </artifactId>
8692 <version>${{ steps.version.outputs.release }}</version>
8793 </dependency>
8894 ```
89- draft : false
90- prerelease : false
9195
9296 publish_central : # Publish the code to central
9397 runs-on : ubuntu-latest
@@ -196,7 +200,6 @@ jobs:
196200 - name : pull-request
197201 uses : repo-sync/pull-request@v3
198202 with :
199- github_token : ${{ secrets.GITHUB_TOKEN }}
200203 destination_branch : " develop"
201204 pr_title : " Sync back"
202- pr_body : " An automated PR to sync changes back"
205+ pr_body : " An automated PR to sync changes back"
0 commit comments