Skip to content

Refactor cache logic for pre-commit in CI workflows#175

Merged
cjolowicz merged 2 commits intomasterfrom
ci-refactor
Apr 24, 2020
Merged

Refactor cache logic for pre-commit in CI workflows#175
cjolowicz merged 2 commits intomasterfrom
ci-refactor

Conversation

@cjolowicz
Copy link
Owner

@cjolowicz cjolowicz commented Apr 23, 2020

@cjolowicz cjolowicz added the ci Changes to CI configuration files and scripts label Apr 23, 2020
@cjolowicz cjolowicz force-pushed the ci-refactor branch 3 times, most recently from be32e7e to e5ea8d5 Compare April 23, 2020 10:49
cjolowicz and others added 2 commits April 24, 2020 11:00
* Use shell: python to set cache key

* Use step output instead of environment variable

* Include "pre-commit" prefix in step output

* Prefix cache key by runner OS

* Restore existing cache after configuration changes

* Simplify print statement

* Use a more human-readable cache key

* Move "pre-commit" to end of cache key prefix

cjolowicz/cookiecutter-hypermodern-python-instance#123
@cjolowicz cjolowicz added this to the 2020.5.15 milestone Apr 24, 2020
@cjolowicz cjolowicz changed the title Refactor Cookiecutter CI Refactor cache logic for pre-commit in CI workflows Apr 24, 2020
@cjolowicz cjolowicz marked this pull request as ready for review April 24, 2020 09:18
@cjolowicz cjolowicz merged commit 4c4cb8b into master Apr 24, 2020
@cjolowicz cjolowicz deleted the ci-refactor branch April 24, 2020 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Changes to CI configuration files and scripts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant