Skip to content

Commit

Permalink
Shell code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Jan 13, 2021
1 parent d6572c3 commit c976915
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -154,7 +152,7 @@ jobs:
run: >
docker run --rm --tty --detach
--name worker
--volume $(pwd):/io
--volume "$(pwd):/io"
"$DOCKER_IMAGE"
bash
Expand Down

0 comments on commit c976915

Please sign in to comment.