1-
21name : Javascript Wrapper Release
32
43on :
5049 release :
5150 runs-on : ubuntu-latest
5251 env :
53- GITHUB_TOKEN : ${{ secrets.OR_GITHUB_TOKEN }}
54- BRANCH_NAME : npm-version-patch
52+ GITHUB_TOKEN : ${{ secrets.OR_GITHUB_TOKEN }}
53+ BRANCH_NAME : npm-version-patch
54+ outputs :
55+ TAG_NAME : ${{ steps.set_tag_name.outputs.TAG_NAME }}
56+ CLI_VERSION : ${{ steps.extract_cli_version.outputs.CLI_VERSION }}
5557 steps :
5658
5759 # CHECKOUT PROJECT
@@ -73,12 +75,15 @@ jobs:
7375
7476 # GET TAG NAME
7577 - name : Generate Tag name
78+ id : set_tag_name
7679 run : |
7780 if [ ${{ inputs.dev }} == true ]; then
78- echo " TAG_NAME=$(npm version prerelease --preid=${{ inputs.jsTag }} --no-git-tag-version --allow-same-version)" >> $GITHUB_ENV
81+ TAG_NAME=$(npm version prerelease --preid=${{ inputs.jsTag }} --no-git-tag-version --allow-same-version)
7982 else
80- echo " TAG_NAME=$(npm version patch --no-git-tag-version)" >> $GITHUB_ENV
83+ TAG_NAME=$(npm version patch --no-git-tag-version)
8184 fi
85+ echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
86+ echo "::set-output name=TAG_NAME::$TAG_NAME"
8287
8388 # DOWNLOAD CLI IF IT IS A DEV VERSION AND A CLI TAG WAS PROVIDED
8489 - name : Download cli with tag ${{ inputs.cliTag }}
@@ -89,10 +94,12 @@ jobs:
8994 ./.github/scripts/update_cli.sh ${{ inputs.cliTag }}
9095
9196 - name : Extract cli version
97+ id : extract_cli_version
9298 run : |
93- CLI_VERSION=$(../src/main/wrapper/resources/cx-linux --version)
94- echo "Cli version being packed is $CLI_VERSION"
95- echo "CLI_VERSION=$CLI_VERSION" >> $GITHUB_ENV
99+ CLI_VERSION=$(../src/main/wrapper/resources/cx-linux --version)
100+ echo "Cli version being packed is $CLI_VERSION"
101+ echo "CLI_VERSION=$CLI_VERSION" >> $GITHUB_ENV
102+ echo "::set-output name=CLI_VERSION::$CLI_VERSION"
96103
97104 # RUN NPM INSTALL AND BUILD
98105 - name : NPM ci and build
@@ -164,9 +171,9 @@ jobs:
164171 uses : Checkmarx/plugins-release-workflow/.github/workflows/release-notify.yml@main
165172 with :
166173 product_name : Javascript Wrapper
167- release_version : ${{ env .TAG_NAME }}
168- cli_release_version : ${{ env .CLI_VERSION }}
174+ release_version : ${{ needs.release.outputs .TAG_NAME }}
175+ cli_release_version : ${{ needs.release.outputs .CLI_VERSION }}
169176 release_author : " Phoenix Team"
170- release_url : https://github.com/CheckmarxDev/ast-cli-javascript-wrapper/releases/tag/${{env. TAG_NAME}}
177+ release_url : https://github.com/CheckmarxDev/ast-cli-javascript-wrapper/releases/tag/${{ needs.release.outputs. TAG_NAME }}
171178 jira_product_name : JAVASCRIPT_WRAPPER
172179 secrets : inherit
0 commit comments