File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -19,12 +19,25 @@ jobs:
1919 run : |
2020 git config --global user.name github-actions[bot]
2121 git config --global user.email github-actions[bot]@users.noreply.github.com
22+
2223
23- - name : Get Latest Checkmarx Java wrapper version
24+ - name : Get Latest Checkmarx Java Wrapper Version
2425 id : ast-cli-java-wrapper
2526 run : |
26- echo ::set-output name=release_tag::$(curl -s "https://repo1.maven.org/maven2/com/checkmarx/ast/ast-cli-java-wrapper/maven-metadata.xml" | grep -oPm1 "(?<=<latest>)[^<]+")
27- echo ::set-output name=current_tag::$(<ast-cli-java-wrapper.version)
27+ latest_tag=$(curl -s "https://repo1.maven.org/maven2/com/checkmarx/ast/ast-cli-java-wrapper/maven-metadata.xml" | grep -oPm1 "(?<=<latest>)[^<]+")
28+ current_tag=$(<ast-cli-java-wrapper.version)
29+
30+ echo "Latest Tag: $latest_tag"
31+ echo "Current Tag: $current_tag"
32+ if [ "$latest_tag" = "$current_tag" ]; then
33+ echo "The tags match."
34+ else
35+ echo "The tags do not match."
36+ fi
37+
38+ echo "release_tag=$latest_tag" >> $GITHUB_OUTPUT
39+ echo "current_tag=$current_tag" >> $GITHUB_OUTPUT
40+
2841 - name : Update Checkmarx Java wrapper version
2942 if : steps.ast-cli-java-wrapper.outputs.current_tag != steps.ast-cli-java-wrapper.outputs.release_tag
3043 run : |
You can’t perform that action at this time.
0 commit comments