Skip to content

Commit

Permalink
Add comment about pixi-bin-path for self-hosted (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw authored Oct 17, 2023
1 parent b6cda42 commit f19fc8f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ This can be specified by setting the `log-level` input.
If nothing is specified, `setup-pixi` will default to `default` or `vv` depending on if [debug logging is enabled for the action](#debug-logging-of-the-action).

### Post action cleanup
### Self-hosted runners

On self hosted runners, it may happen that some files are persisted between jobs.
This can lead to problems or secrets getting leaked between job runs.
Expand All @@ -194,10 +194,14 @@ If you set `post-cleanup` to `true`, the action will delete the following files:

If nothing is specified, `setup-pixi` will default to `true`.

On self-hosted runners, you also might want to alter the default pixi install location to a temporary location. You can use `pixi-bin-path: ${{ runner.temp }}/bin/pixi` to do this.

```yml
- uses: prefix-dev/[email protected]
with:
post-cleanup: false
post-cleanup: true
# ${{ runner.temp }}\Scripts\pixi.exe on Windows
pixi-bin-path: ${{ runner.temp }}/bin/pixi
```

## More examples
Expand Down

0 comments on commit f19fc8f

Please sign in to comment.