Skip to content

Commit

Permalink
Add extra_path usage to README.
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffano committed Nov 1, 2024
1 parent cb9f412 commit f19bbf4
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------

Expand Down

0 comments on commit f19bbf4

Please sign in to comment.