-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ GitHub Action to set up the [pixi](https://github.com/prefix-dev/pixi) package m | |
```yml | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
pixi-version: v0.5.0 | ||
pixi-version: v0.7.0 | ||
cache: true | ||
auth-host: prefix.dev | ||
auth-token: ${{ secrets.PREFIX_DEV_TOKEN }} | ||
|
@@ -52,6 +52,18 @@ You can specify the behavior by setting the `cache` input argument. | |
If you need to customize your cache-key, you can use the `cache-key` input argument. | ||
This will be the prefix of the cache key. The full cache key will be `<cache-key><conda-arch>-<hash>`. | ||
|
||
#### Only save caches on `main` | ||
|
||
In order to not exceed the [10 GB cache size limit](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy) as fast, you might want to restrict when the cache is saved. | ||
This can be done by setting the `cache-write` argument. | ||
|
||
```yml | ||
- uses: prefix-dev/[email protected] | ||
with: | ||
cache: true | ||
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }} | ||
``` | ||
|
||
### Authentication | ||
|
||
There are currently three ways to authenticate with pixi: | ||
|