Skip to content

Commit b2656b3

Browse files
print update values
1 parent 7c2fd80 commit b2656b3

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/update-cli.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)