Skip to content

Commit

Permalink
fix(action): Port from set-output to env files
Browse files Browse the repository at this point in the history
GitHub deprecated the set-output command, and recommends using the new
environment files instead for security purposes.
  • Loading branch information
Kurt-von-Laven committed Oct 14, 2022
1 parent 64ae96e commit 6b31801
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ runs:
else
installed='false'
fi
echo "::set-output name=installed::$installed"
echo "::set-output name=in-use::$in_use"
echo "INSTALLED=$installed" >>"$GITHUB_OUTPUT"
echo "IN_USE=$in_use" >>"$GITHUB_OUTPUT"
shell: bash
- name: Stop rootful Docker daemon.
if: steps.rootless-docker.outputs.in-use != 'true'
if: steps.rootless-docker.outputs.IN_USE != 'true'
run: sudo systemctl stop docker.service
shell: bash
- name: Install rootless Docker, start daemon, and wait until it's listening.
if: steps.rootless-docker.outputs.installed != 'true'
if: steps.rootless-docker.outputs.INSTALLED != 'true'
run: |
echo ~/bin >>"$GITHUB_PATH"
if [[ -z $XDG_RUNTIME_DIR ]]; then
Expand Down Expand Up @@ -61,7 +61,7 @@ runs:
FORCE_ROOTLESS_INSTALL: "1"
shell: bash
- name: Proxy bidirectionally between rootful and rootless Docker sockets.
if: steps.rootless-docker.outputs.in-use != 'true'
if: steps.rootless-docker.outputs.IN_USE != 'true'
run: >
sudo systemd-run
--unit=docker-proxy.service
Expand Down

0 comments on commit 6b31801

Please sign in to comment.