aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Sebastiaan Zeeff <[email protected]>2020-11-16 22:15:07 +0100
committerGravatar Sebastiaan Zeeff <[email protected]>2020-11-16 22:15:07 +0100
commitccbd6ea695f091be5296db8cb36203eeede8eb6d (patch)
treea0c76d951d0ddd8e9610c5285777eb3025034eec
parentProperly escape newlines in docker run command (diff)
Use quoted run arguments for multiline commands
-rw-r--r--.github/workflows/lint-test.yaml15
1 files changed, 6 insertions, 9 deletions
diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml
index 3024e15..faae063 100644
--- a/.github/workflows/lint-test.yaml
+++ b/.github/workflows/lint-test.yaml
@@ -63,8 +63,7 @@ jobs:
tags: ghcr.io/python-discord/snekbox-venv:latest
- name: Start Container
- run: |
- docker run \
+ run: 'docker run \
--tty \
--detach \
--name snekbox_test \
@@ -76,14 +75,12 @@ jobs:
--volume "${PWD}":"${PWD}" \
--workdir "${PWD}"\
--entrypoint /bin/bash \
- pythondiscord/snekbox-venv:latest
+ pythondiscord/snekbox-venv:latest'
- name: Install dependencies
- run: |
- docker exec snekbox_test /bin/bash -c \
- 'pipenv install --system --deploy --dev'
+ run: "docker exec snekbox_test /bin/bash -c \
+ 'pipenv install --system --deploy --dev'"
- name: Run linter
- run: |
- docker exec snekbox_test /bin/bash -c 'flake8 \
- --format "::error file=%(path)s,line=%(row)d,col=%(col)d::[flake8] %(code)s: %(text)s"'
+ run: "docker exec snekbox_test /bin/bash -c 'flake8 \
+ --format \"::error file=%(path)s,line=%(row)d,col=%(col)d::[flake8] %(code)s: %(text)s\"'"