Skip to content

How do I change where a GitHub Action runs? #38360

Answered by airtower-luna
rfalanga asked this question in General
Discussion options

You must be logged in to vote

Each run step gets a fresh shell, so cd only works if you do it within the same step.

The alternative is to set working-directory for your run step:

- run: your command here
  working-directory: run/here/

You can also set a default working directory for all run steps in the job.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rfalanga
Comment options

@ivansholokh
Comment options

Answer selected by rfalanga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants