From f19bbf44f3c1c5d161b761cc9bf0bf80319ae9c0 Mon Sep 17 00:00:00 2001 From: Cliffano Subagio Date: Sat, 2 Nov 2024 09:25:59 +1100 Subject: [PATCH] Add extra_path usage to README. --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 4be7062..4989dc7 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,17 @@ Run command using environment variables passed via env file: command: 'echo "SOME_ENV_VAR: $SOME_ENV_VAR"' env_file: '/tmp/.env' +Run command with extra PATH environment variable: + + jobs: + build: + steps: + - name: 'Run custom command from a custom path specified in extra_path' + uses: cliffano/command-docker-action@main + with: + command: 'mkdir -p /opt/workspace/bin/ && touch /opt/workspace/bin/some-exec && chmod +x /opt/workspace/bin/some-exec && which some-exec' + extra_path: '/some/path:/opt/workspace/bin' + Configuration -------------