Skip to content

Commit

Permalink
Wrap combined command in quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Jul 15, 2024
1 parent adfb8e8 commit 1a71e99
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
},
{
"name": "Run with Docker",
"run": "docker run --workdir \"${GITHUB_WORKSPACE}\" -v \"${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE}:z\" --rm --platform linux/${{ matrix.docker_arch }} -t ${{ matrix.docker }} mkdir ../working && cp -r ./ ../working/ && cd ../working && java @args-${{ matrix.os }}.txt && cp -r ./ ${GITHUB_WORKSPACE}/ && cd ${GITHUB_WORKSPACE}",
"run": "docker run --workdir \"${GITHUB_WORKSPACE}\" -v \"${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE}:z\" --rm --platform linux/${{ matrix.docker_arch }} -t ${{ matrix.docker }} \"mkdir ../working && cp -r ./ ../working/ && cd ../working && java @args-${{ matrix.os }}.txt && cp -r ./ ${GITHUB_WORKSPACE}/ && cd ${GITHUB_WORKSPACE}\"",
"if": "${{ matrix.docker }}"
},
{
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
},
{
"name": "Run with Docker",
"run": "docker run --workdir \"${GITHUB_WORKSPACE}\" -v \"${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE}:z\" --rm --platform linux/${{ matrix.docker_arch }} -t ${{ matrix.docker }} mkdir ../working && cp -r ./ ../working/ && cd ../working && java @args-${{ matrix.os }}.txt && cp -r ./ ${GITHUB_WORKSPACE}/ && cd ${GITHUB_WORKSPACE}",
"run": "docker run --workdir \"${GITHUB_WORKSPACE}\" -v \"${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE}:z\" --rm --platform linux/${{ matrix.docker_arch }} -t ${{ matrix.docker }} \"mkdir ../working && cp -r ./ ../working/ && cd ../working && java @args-${{ matrix.os }}.txt && cp -r ./ ${GITHUB_WORKSPACE}/ && cd ${GITHUB_WORKSPACE}\"",
"if": "${{ matrix.docker }}"
},
{
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ managedVersioning {
step {
name.set 'Run with Docker'
parameters.put('if', '${{ matrix.docker }}')
run.set 'docker run --workdir "${GITHUB_WORKSPACE}" -v "${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE}:z" --rm --platform linux/${{ matrix.docker_arch }} -t ${{ matrix.docker }} ' +
run.set 'docker run --workdir "${GITHUB_WORKSPACE}" -v "${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE}:z" --rm --platform linux/${{ matrix.docker_arch }} -t ${{ matrix.docker }} "' +
'mkdir ../working && cp -r ./ ../working/ && cd ../working && ' +
'java @args-${{ matrix.os }}.txt && ' +
'cp -r ./ ${GITHUB_WORKSPACE}/ && cd ${GITHUB_WORKSPACE}'
'cp -r ./ ${GITHUB_WORKSPACE}/ && cd ${GITHUB_WORKSPACE}"'
}
step {
name.set 'Run'
Expand Down

0 comments on commit 1a71e99

Please sign in to comment.