summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngy döt Net <ingy@ingy.net>2020-12-23 10:38:09 -0500
committerIngy döt Net <ingy@ingy.net>2021-01-13 16:58:40 -0500
commitc97691596eec279ef9191a9b3bba583a17139d5a (patch)
tree0252b6f6864bfe88692e24f8e711d224d9b30977
parentd6572c3a80607bd095b7288426a4d1352349f961 (diff)
downloadpyyaml-git-c97691596eec279ef9191a9b3bba583a17139d5a.tar.gz
Shell code improvements
-rw-r--r--.github/workflows/ci.yaml10
1 files changed, 4 insertions, 6 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 86dfe4c..9ef4ecf 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -38,12 +38,10 @@ jobs:
python -m build .
# ensure exactly one artifact was produced
- shopt -s nullglob
- DISTFILES=(dist/*.tar.gz)
- if [[ ${DISTFILES[@]} -ne 1 ]]; then
+ [[ $(shopt -s nullglob; ls dist/*.tar.gz | wc -w) == 1 ]] || {
echo "unexpected content in dist dir: $(ls dist/*.tar.gz)"
exit 1
- fi
+ }
- name: test sdist
run: |
@@ -97,7 +95,7 @@ jobs:
- name: build libyaml
run: >
docker run --rm
- --volume $(pwd):/io
+ --volume "$(pwd):/io"
--env LIBYAML_REF
--env LIBYAML_REPO
--workdir /io
@@ -154,7 +152,7 @@ jobs:
run: >
docker run --rm --tty --detach
--name worker
- --volume $(pwd):/io
+ --volume "$(pwd):/io"
"$DOCKER_IMAGE"
bash