https://github.com/assignuser/stash
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.1%) to scientific vocabulary
Keywords from Contributors
Repository
Basic Info
- Host: GitHub
- Owner: assignUser
- License: apache-2.0
- Language: Python
- Default Branch: main
- Size: 50.8 KB
Statistics
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
- Releases: 0
Metadata Files
README.md
[!WARNING] This action is now maintained here. Please update your workflows accordingly, this repo is now archived and will be removed at some point.
Stash GitHub Action
Stash provides a solution for managing large build caches in your workflows, that doesn't require any secrets and can be used in fork PRs. It's designed as an alternative to actions/cache which struggles with big build caches such as .ccache directories. This action is split into two distinct operations: assign/user/restore for fetching a previously stored stash, and assignUser/stash/save for storing a new stash after a build has been completed.
Features
- No repository wide size limit of 10GB each stash is uploaded as a workflow artifact.
- This means there will be no cache evicition leading to cache misses and increased build times. Stashes will expire after 5 days by default.
- Artifact storage is free for public repositories and much cheaper than CI minutes (~ 1 Cent/1GB/day) for private repositories.
- No secrets required, stash can be used in fork PRs.
- Follows the same search scope as
actions/cache: will look for the cache in the current workflow, current branch and finally the base branch of a PR.
Usage
[!IMPORTANT] You have to explicitly save your stash by using
assignUser/stash/saveaction, it will not be saved automatically by usingassignUser/stash/restore.
To restore a stash before your build process, use the assignUser/stash/restore action in your workflow:
yaml
steps:
- uses: actions/checkout@v2
- uses: assignUser/stash/restore@v1
with:
key: 'cache-key'
path: 'path/to/cache'
After your build completes, save the stash using the assignUser/stash/save action:
yaml
steps:
- uses: assignUser/stash/save@v1
with:
key: 'cache-key'
path: 'path/to/cache'
Stashes will expire after 5 days by default. You can set this from 1-90 days with the retention-days input. Using the save action again in the same workflow run will overwrite the existing cache with the same key. If you want to keep the old cache, you can use a different key or set overwrite to false.
Inputs and Outputs
Each action (restore and save) has specific inputs tailored to its functionality, they are specifically modeled after actions/cache and actions/upload-artifact to provide a drop in replacement. Please refer to the action metadata (action.yml) for a comprehensive list of inputs, including descriptions and default values.
Additionally the restore action has an output stash-hit which is set to true (as a string so use if: ${{ steps.restore-stash.outputs.stash-hit == 'true' }}!) if the cache was restored successfully, false if no cache was restored and '' if the action failed (an error will be thrown unless continue-on-error is set).
Contributing
Contributions are welcome! If you'd like to contribute, please open an isse to discuss your plans (unless it's a typo ;)).
Owner
- Name: Jacob Wujciak-Jens
- Login: assignUser
- Kind: user
- Location: Germany
- Company: @voltrondata
- Repositories: 11
- Profile: https://github.com/assignUser
GitHub Events
Total
- Delete event: 4
- Issue comment event: 2
- Push event: 6
- Pull request event: 12
- Create event: 8
Last Year
- Delete event: 4
- Issue comment event: 2
- Push event: 6
- Pull request event: 12
- Create event: 8
Committers
Last synced: over 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Jacob Wujciak-Jens | j****b@w****e | 15 |
| dependabot[bot] | 4****] | 1 |
Committer Domains (Top 20 + Academic)
Dependencies
- ./restore * composite
- ./save * composite
- actions/checkout v4 composite
- actions/download-artifact v4 composite
- actions/upload-artifact 5d5d22a31266ced268874388b861e4b58bb5c2f3 composite