Skip to content

Commit

Permalink
Node: update action.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Prateek Kumar <[email protected]>
  • Loading branch information
prateek-kumar-improving committed Feb 5, 2025
1 parent e6b0e72 commit ab2e8f9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/node-create-package-file/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,7 @@ runs:
export node_os="${{ inputs.named_os }}"
export node_arch="${{ inputs.arch }}"
# set the version
echo "The workflow is: ${{env.EVENT_NAME}}"
if ${{ env.EVENT_NAME == 'workflow_dispatch' }}; then
R_VERSION="${{ env.INPUT_VERSION }}"
else
R_VERSION=${GITHUB_REF:11}
fi
echo "RELEASE_VERSION=${R_VERSION}" >> $GITHUB_ENV
export package_version=${R_VERSION}
export package_version="${{ inputs.release_version }}"
# set the package name
export pkg_name="${name}-${node_os}${MUSL_FLAG}-${node_arch}"
# set the scope
Expand Down Expand Up @@ -99,7 +92,14 @@ runs:
name="valkey-glide"
export node_os="${{ inputs.named_os }}"
export node_arch="${{ inputs.arch }}"
export package_version="${{ inputs.release_version }}"
echo "The workflow is: ${{env.EVENT_NAME}}"
if ${{ env.EVENT_NAME == 'workflow_dispatch' }}; then
R_VERSION="${{ env.INPUT_VERSION }}"
else
R_VERSION=${GITHUB_REF:11}
fi
echo "RELEASE_VERSION=${R_VERSION}" >> $GITHUB_ENV
export package_version=${R_VERSION}
export scope=`if [ "${{ inputs.npm_scope }}" != '' ]; then echo "${{ inputs.npm_scope }}/"; fi`
export MUSL_FLAG=`if [[ "${{ inputs.target }}" =~ .*"musl".* ]]; then echo "-musl"; fi`
export pkg_name="${name}-${node_os}${MUSL_FLAG}-${node_arch}"
Expand Down

0 comments on commit ab2e8f9

Please sign in to comment.