Skip to content

Commit 9e08745

Browse files
authored
Merge pull request #176 from xdev-software/develop
Release
2 parents 52d8675 + 0c59c9e commit 9e08745

File tree

14 files changed

+372
-177
lines changed

14 files changed

+372
-177
lines changed
File renamed without changes.

.github/workflows/release.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212
pull-requests: write
1313

1414
jobs:
15-
check_code: # Validates the code
15+
check-code:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v4
@@ -45,9 +45,9 @@ jobs:
4545
exit 1
4646
fi
4747
48-
prepare_release:
48+
prepare-release:
4949
runs-on: ubuntu-latest
50-
needs: [check_code]
50+
needs: [check-code]
5151
outputs:
5252
upload_url: ${{ steps.create_release.outputs.upload_url }}
5353
steps:
@@ -93,8 +93,8 @@ jobs:
9393
release_name: v${{ steps.version.outputs.release }}
9494
commitish: master
9595
body: |
96-
## [Changelog](https://github.com/xdev-software/${{ env.PRIMARY_MAVEN_MODULE }}/blob/develop/CHANGELOG.md#${{ steps.version.outputs.releasenumber }})
97-
See [Changelog#v${{ steps.version.outputs.release }}](https://github.com/xdev-software/${{ env.PRIMARY_MAVEN_MODULE }}/blob/develop/CHANGELOG.md#${{ steps.version.outputs.releasenumber }}) for more information.
96+
## [Changelog](https://github.com/${{ github.repository }}/blob/develop/CHANGELOG.md#${{ steps.version.outputs.releasenumber }})
97+
See [Changelog#v${{ steps.version.outputs.release }}](https://github.com/${{ github.repository }}/blob/develop/CHANGELOG.md#${{ steps.version.outputs.releasenumber }}) for more information.
9898
9999
## Installation
100100
Add the following lines to your pom:
@@ -106,9 +106,9 @@ jobs:
106106
</dependency>
107107
```
108108
109-
publish_central: # Publish the code to central
109+
publish-maven:
110110
runs-on: ubuntu-latest
111-
needs: [prepare_release]
111+
needs: [prepare-release]
112112
steps:
113113
- uses: actions/checkout@v4
114114

@@ -139,7 +139,7 @@ jobs:
139139

140140
publish-pages:
141141
runs-on: ubuntu-latest
142-
needs: [prepare_release]
142+
needs: [prepare-release]
143143
steps:
144144
- uses: actions/checkout@v4
145145

@@ -166,9 +166,9 @@ jobs:
166166
github_token: ${{ secrets.GITHUB_TOKEN }}
167167
publish_dir: ./${{ env.PRIMARY_MAVEN_MODULE }}/target/site
168168

169-
after_release:
169+
after-release:
170170
runs-on: ubuntu-latest
171-
needs: [publish_central]
171+
needs: [publish-maven]
172172
steps:
173173
- uses: actions/checkout@v4
174174

.github/workflows/sonar.yml

+15-3
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,22 @@ env:
2424
SONARCLOUD_HOST: https://sonarcloud.io
2525

2626
jobs:
27-
sonar:
28-
name: SonarCloud Scan
27+
token-check:
2928
runs-on: ubuntu-latest
30-
if: ${{ github.event_name != 'pull_request' || !startsWith(github.head_ref, 'renovate/') }}
29+
if: ${{ !(github.event_name == 'pull_request' && startsWith(github.head_ref, 'renovate/')) }}
30+
outputs:
31+
hasToken: ${{ steps.check-token.outputs.has }}
32+
steps:
33+
- id: check-token
34+
run: |
35+
[ -z $SONAR_TOKEN ] && echo "has=false" || echo "has=true" >> "$GITHUB_OUTPUT"
36+
env:
37+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
38+
39+
sonar-scan:
40+
runs-on: ubuntu-latest
41+
needs: token-check
42+
if: ${{ needs.token-check.outputs.hasToken }}
3143
steps:
3244
- uses: actions/checkout@v4
3345
with:

.github/workflows/test-deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ env:
77
PRIMARY_MAVEN_MODULE: ${{ github.event.repository.name }}
88

99
jobs:
10-
publish_central: # Publish the code to central
10+
publish-maven:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)