35
35
jobs :
36
36
release :
37
37
runs-on : ubuntu-latest
38
+ outputs :
39
+ CLI_VERSION : ${{ steps.extract_cli_version.outputs.CLI_VERSION }}
40
+ TAG_NAME : ${{ steps.set_tag_name.outputs.TAG_NAME }}
38
41
steps :
39
42
- name : Checkout
40
43
uses : actions/checkout@v4
49
52
./.github/scripts/update_cli.sh ${{ inputs.cliTag }}
50
53
51
54
- name : Tag
55
+ id : set_tag_name
52
56
run : |
53
57
echo ${{ inputs.tag }}
54
58
tag=${{ inputs.tag }}
58
62
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
59
63
git tag -a "${tag}" -m "${message}"
60
64
git push origin "${tag}"
65
+ echo "::set-output name=TAG_NAME::${{ inputs.tag }}"
61
66
62
67
- name : Cache local Maven repository
63
68
uses : actions/cache@v4
77
82
server-password : MAVEN_PASSWORD
78
83
gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
79
84
gpg-passphrase : MAVEN_GPG_PASSPHRASE
80
-
81
85
82
-
83
86
- name : Update the POM version.
84
87
run : mvn -B versions:set -DnewVersion='${{ env.RELEASE_VERSION }}' --file pom.xml -DskipTests
85
88
91
94
fi
92
95
echo "AID_PROP=${prop}" >> $GITHUB_ENV
93
96
97
+ - name : Extract CLI version
98
+ id : extract_cli_version
99
+ run : |
100
+ CLI_VERSION=$(./src/main/resources/cx-linux version | grep -Eo '^[0-9]+\.[0-9]+\.[0-9]+')
101
+ echo "CLI version being packed is $CLI_VERSION"
102
+ echo "CLI_VERSION=$CLI_VERSION" >> $GITHUB_ENV
103
+ echo "::set-output name=CLI_VERSION::$CLI_VERSION"
104
+
94
105
- name : Publish package
95
106
run : mvn --batch-mode deploy -DskipTests ${{ env.AID_PROP }}
96
107
env :
@@ -104,3 +115,16 @@ jobs:
104
115
generate_release_notes : true
105
116
tag_name : ${{ inputs.tag }}
106
117
prerelease : ${{ inputs.dev }}
118
+
119
+ notify :
120
+ if : inputs.dev == false
121
+ needs : release
122
+ uses : Checkmarx/plugins-release-workflow/.github/workflows/release-notify.yml@main
123
+ with :
124
+ product_name : Java Wrapper
125
+ release_version : ${{ needs.release.outputs.TAG_NAME }}
126
+ cli_release_version : ${{ needs.release.outputs.CLI_VERSION }}
127
+ release_author : " Phoenix Team"
128
+ release_url : https://github.com/CheckmarxDev/ast-cli-java-wrapper/releases/tag/${{ needs.release.outputs.TAG_NAME }}
129
+ jira_product_name : JAVA_WRAPPER
130
+ secrets : inherit
0 commit comments