Skip to content

Commit

Permalink
Fix multiple commands
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Jul 15, 2024
1 parent 1a71e99 commit 6b03219
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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 }} /bin/bash -c \"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 }} /bin/bash -c \"mkdir ../working; cp -r ./ ../working/; cd ../working; java @args-${{ matrix.os }}.txt; cp -r ./ ${GITHUB_WORKSPACE}/; cd ${GITHUB_WORKSPACE}\"",
"if": "${{ matrix.docker }}"
},
{
Expand Down
8 changes: 4 additions & 4 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 }} "' +
'mkdir ../working && cp -r ./ ../working/ && cd ../working && ' +
'java @args-${{ matrix.os }}.txt && ' +
'cp -r ./ ${GITHUB_WORKSPACE}/ && cd ${GITHUB_WORKSPACE}"'
run.set 'docker run --workdir "${GITHUB_WORKSPACE}" -v "${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE}:z" --rm --platform linux/${{ matrix.docker_arch }} -t ${{ matrix.docker }} /bin/bash -c "' +
'mkdir ../working; cp -r ./ ../working/; cd ../working; ' +
'java @args-${{ matrix.os }}.txt; ' +
'cp -r ./ ${GITHUB_WORKSPACE}/; cd ${GITHUB_WORKSPACE}"'
}
step {
name.set 'Run'
Expand Down

0 comments on commit 6b03219

Please sign in to comment.