Skip to content

Commit 6b31801

Browse files
fix(action): Port from set-output to env files
GitHub deprecated the set-output command, and recommends using the new environment files instead for security purposes.
1 parent 64ae96e commit 6b31801

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

action.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ runs:
2121
else
2222
installed='false'
2323
fi
24-
echo "::set-output name=installed::$installed"
25-
echo "::set-output name=in-use::$in_use"
24+
echo "INSTALLED=$installed" >>"$GITHUB_OUTPUT"
25+
echo "IN_USE=$in_use" >>"$GITHUB_OUTPUT"
2626
shell: bash
2727
- name: Stop rootful Docker daemon.
28-
if: steps.rootless-docker.outputs.in-use != 'true'
28+
if: steps.rootless-docker.outputs.IN_USE != 'true'
2929
run: sudo systemctl stop docker.service
3030
shell: bash
3131
- name: Install rootless Docker, start daemon, and wait until it's listening.
32-
if: steps.rootless-docker.outputs.installed != 'true'
32+
if: steps.rootless-docker.outputs.INSTALLED != 'true'
3333
run: |
3434
echo ~/bin >>"$GITHUB_PATH"
3535
if [[ -z $XDG_RUNTIME_DIR ]]; then
@@ -61,7 +61,7 @@ runs:
6161
FORCE_ROOTLESS_INSTALL: "1"
6262
shell: bash
6363
- name: Proxy bidirectionally between rootful and rootless Docker sockets.
64-
if: steps.rootless-docker.outputs.in-use != 'true'
64+
if: steps.rootless-docker.outputs.IN_USE != 'true'
6565
run: >
6666
sudo systemd-run
6767
--unit=docker-proxy.service

0 commit comments

Comments
 (0)