Skip to content
Kim SeungSu edited this page Dec 29, 2022 · 3 revisions

GitHub Actions

Support was added in https://github.com/direnv/direnv/pull/910

Add the following steps to one of the pipelines:

- name: Load PATH changes
  run: direnv exec . sh -c 'echo $PATH' > "$GITHUB_PATH"
- name: Load other environment changes
  run: direnv export gha >> "$GITHUB_ENV"

Community supported Github action is also available. Please check the following URL direnv-action.