Skip to content

Commit

Permalink
use bash shell for artifact ID and version (#243)
Browse files Browse the repository at this point in the history
* quote maven args for artifact ID and version

* use bash shell

* Update pro-extension-test.yml

---------

Co-authored-by: Sayali Mohadikar <76010603+sayaliM0412@users.noreply.github.com>
  • Loading branch information
StevenMassaro and sayaliM0412 authored Aug 13, 2024
1 parent 1aecc55 commit 5bf74fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/pro-extension-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,14 @@ jobs:
- name: Get Artifact ID
working-directory: ${{ inputs.artifactPath }}
id: get-artifact-id
run: echo "::set-output name=artifact_id::$(mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout)"
shell: bash
run: echo "artifact_id=$(mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout)" >> $GITHUB_ENV

- name: Get Artifact Version
working-directory: ${{ inputs.artifactPath }}
id: get-artifact-version
run: echo "::set-output name=artifact_version::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
shell: bash
run: echo "artifact_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV

- name: Save Artifacts
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 5bf74fb

Please sign in to comment.