From 3a5a5ef9058819458ff7ed26827820d18eee8cd4 Mon Sep 17 00:00:00 2001 From: Markus Fuchs Date: Tue, 11 Jun 2024 13:40:12 +0200 Subject: [PATCH] Use HOME environment variable to build path Self-hosted GitHub Runners could have any user as the github runner. Even multiple users/runners on a single machine like .e.g. /home/github-runner1 /home/github-runner2 ... So lets use $HOME environment variable instead of hardcoded /home/runner. --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index e892830..cfbf256 100644 --- a/action.yml +++ b/action.yml @@ -26,7 +26,7 @@ runs: shell: bash - name: Fix path on Linux run: | - echo "/home/runner/.local/bin" >> $GITHUB_PATH + echo "$HOME/.local/bin" >> $GITHUB_PATH shell: bash - name: Fill in output variable id: output_version