Skip to content

Commit ecfed9e

Browse files
Prefer variables over subprocesses (#26690) (#26693)
Backport #26690 by @thomas-mc-work … because it doesn't require a separate shell, spawning a process which cost unnecessary resources and takes time. Co-authored-by: Thomas McWork <[email protected]>
1 parent 2f4de24 commit ecfed9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/content/usage/actions/act-runner.en-us.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ docker run --entrypoint="" --rm -it gitea/act_runner:latest act_runner generate-
8181
When you are using the docker image, you can specify the configuration file by using the `CONFIG_FILE` environment variable. Make sure that the file is mounted into the container as a volume:
8282

8383
```bash
84-
docker run -v $(pwd)/config.yaml:/config.yaml -e CONFIG_FILE=/config.yaml ...
84+
docker run -v $PWD/config.yaml:/config.yaml -e CONFIG_FILE=/config.yaml ...
8585
```
8686

8787
You may notice the commands above are both incomplete, because it is not the time to run the act runner yet.
@@ -157,8 +157,8 @@ If you are using the docker image, behaviour will be slightly different. Registr
157157

158158
```bash
159159
docker run \
160-
-v $(pwd)/config.yaml:/config.yaml \
161-
-v $(pwd)/data:/data \
160+
-v $PWD/config.yaml:/config.yaml \
161+
-v $PWD/data:/data \
162162
-v /var/run/docker.sock:/var/run/docker.sock \
163163
-e CONFIG_FILE=/config.yaml \
164164
-e GITEA_INSTANCE_URL=<instance_url> \

0 commit comments

Comments
 (0)