stale
stale copied to clipboard
Add cache-prefixing
Description:
This changes allow the state saved to the global action cache to be stored with a prefix. Useful as _state
is not a unique name and multiple workflows could save the cache as _state
. Also useful as you currently cannot use this action twice for independent runs as the runs would pick up the same state. With this change, it is possible to have one run close all PRs with label x
after 7 days and another run close all PRs except those with label x
after 10 days.
Also updated the README.md to show proper permissions needed.
Related issue: https://github.com/actions/stale/issues/1137
Please also look into merging PR https://github.com/actions/stale/pull/1152 as this isn't necessarily useful if caching isn't 100% fixed.
Check list:
- [x] Mark if documentation changes are required.
- [ ] Mark if tests were added or updated to cover the changes.