Skip to content

Commit 062e011

Browse files
committed
ci: $PWD is equivalent to $(pwd)
1 parent c022b92 commit 062e011

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

ci/actions-templates/centos-fmt-clippy-template.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,8 @@ jobs:
6969
rustup component add clippy
7070
- name: Run the centos check within the docker image
7171
run: |
72-
HERE=$(pwd)
7372
docker run \
74-
--volume "$HERE":/checkout:ro \
73+
--volume "$PWD":/checkout:ro \
7574
--workdir /checkout \
7675
--tty \
7776
--init \

ci/actions-templates/linux-builds-template.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,14 @@ jobs:
115115
fi
116116
- name: Run the build within the docker image
117117
run: |
118-
HERE=$(pwd)
119-
mkdir -p "${HERE}/target"
120-
chown -R "$(id -u)":"$(id -g)" "${HERE}/target"
118+
mkdir -p "${PWD}/target"
119+
chown -R "$(id -u)":"$(id -g)" "${PWD}/target"
121120
docker run \
122121
--entrypoint sh \
123122
--user "$(id -u)":"$(id -g)" \
124123
--volume "$(rustc --print sysroot)":/rustc-sysroot:ro \
125-
--volume "${HERE}":/checkout:ro \
126-
--volume "${HERE}"/target:/checkout/target \
124+
--volume "${PWD}":/checkout:ro \
125+
--volume "${PWD}"/target:/checkout/target \
127126
--workdir /checkout \
128127
--env TARGET="${TARGET}" \
129128
--env SKIP_TESTS="${SKIP_TESTS}" \

0 commit comments

Comments
 (0)