329 Commits

Author SHA1 Message Date
Brian Cristante
c9db520cf3
Create check-dist.yml (#604)
* Add check-dist.yml

* Fix triggers in licensed.yml

* fix workflow for this repo
2021-08-05 14:39:40 -04:00
dependabot[bot]
10906ba9cd
Bump ws from 5.2.2 to 5.2.3 (#610)
Bumps [ws](https://github.com/websockets/ws) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/5.2.2...5.2.3)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-07-20 10:13:00 -04:00
Vít Stanislav
2ebdcff279
Add "see more" link to GHE-not-supported warning (#609)
* Add "see more" link to GHE-not-supported warning

I lived for several months thinking that support for caching action on GHE is just a matter of time, because it's such an important thing to have. Only today, I discovered that originally it was not planned at all. And that people already created some workarounds. So I hope that linking the issue from the warning message will save other people from what happened to me :-)

* Update new GHE-not-supported message in tests

* Update generated dist files
2021-07-20 10:02:26 -04:00
andrewdotn
5807af2642
Fix bugs in example of how to use with pipenv (#607)
* Fix bugs in example of how to use with pipenv

The current example of how to use `@actions/cache` with pipenv has two
problems:

 1. The cached virtualenv that pipenv creates has `bin/python` as a symlink
    into paths like `/opt/hostedtoolcache/Python/3.7.11` that explicitly
    include the patch version of python. When the cache is restored onto a
    machine running a slightly different version of python, e.g., when
    GitHub upgrades its runners from python 3.7.10 to 3.7.11, then any
    attempt to run python in the workflow mysteriously fails with errors
    like `Failed to load paths: /bin/sh: 1: /home/runner/.local/share/virtualenvs/myrepo-sOIMCiTO/bin/python: not found`.

    Therefore the patch version of python should be included in the cache
    key.

 2. `pipenv --install` has the unfortunate behaviour of not cleaning out
    any pre-existing packages. That is, if the `Pipfile` first contains
    dependencies on `foo` and `bar`, and then you remove `bar` from the
    `Pipfile` and run `pipenv install` again, `bar` is still included in
    the virtualenv.

    This can cause false-positive test failures: when a dependency is
    removed from the `Pipfile` but there is still code that relies on the
    removed dependency, tests can still pass if the dependency comes from
    the cache based on a previous revision of `Pipfile.lock`.

    Therefore `restore-keys` should not be set.

This PR attempts to address both of these issues.

* Explain why setup-python is included in example
2021-07-15 14:37:10 -04:00
Peter Mescalchin
0638051e9a
Golang example tweak - add go-build path - rebuild page TOC (#577) 2021-06-01 08:39:29 -05:00
David Hadka
c64c572235
Catch and log unhandled exceptions stemming from closed file descriptor (#596) v2.1.6 2021-05-27 10:46:35 -05:00
Alex Tokarev
cc2d767a72
Update Rust directories recommended for caching (#433)
This commit applies the suggestion from The Cargo Book:
https://doc.rust-lang.org/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci
2021-05-21 12:41:57 -05:00
Daniel Kuschny
2fa955d825
Update examples.md (#588)
Extend gradle notes.
2021-05-13 14:40:34 -05:00
Yuichi Yogo
4762de4681 simplify path in lerna example 2021-04-21 02:47:03 +09:00
kalin
3a696372f2
elixir typo - stray parenthesis (#569) 2021-04-20 08:51:44 -05:00
Wojtek Mach
366e5ba022
Update cache key for Elixir (#568) 2021-04-19 08:42:01 -05:00
Yuichi Yogo
12ed05f49a Fix typo of cache path in Lerna example 2021-04-17 12:35:30 +09:00
David Hadka
8d3f2fc3ce
Update dependencies (#565) 2021-04-12 12:21:20 -05:00
David Hadka
1a9e2138d9
Update cache module to v1.0.7 (#562) v2.1.5 2021-04-12 08:57:09 -05:00
Jonathan Clem
981fa981ed
Merge pull request #469 from ericmj/patch-1
Also cache _build for Elixir
2021-03-31 10:46:31 -04:00
Pradyun Gedam
4498c5b4d8
Drop the example based on using pip's internals (#519)
pip's documentation explicitly states to not use `import pip`:

> While it is implemented in Python, and so is available from your Python code via
> `import pip`, you must not use pip’s internal APIs in this way.

This example is in direct contradiction with the documentation's guidance and, thus, has
been removed.
2021-03-29 17:34:02 -04:00
Robert Stoll
4134e6de47
It is not recommended to cache node_modules (#537)
According to the docs of this repo, so the example should not show it
2021-02-17 13:18:00 -05:00
Yaroslav Dynnikov
26968a09c0
Make save/restore logs akin (#509)
- Print primary key when saving cache
v2.1.4
2021-02-03 23:07:49 +01:00
Konrad Pabjan
aeaf731ae2
Use @actions/cache version 1.0.6 (#525)
* Use @actions/cache version 1.0.6

* Update cache.dep.yml

* Update all files in .licenses
2021-02-03 22:12:20 +01:00
Konrad Pabjan
56a8a2f775
Merge pull request #514 from eregon/recommend-setup-ruby-bundler-cache
Recommend ruby/setup-ruby's bundler-cache: true option
2021-02-02 21:29:35 +01:00
Benoit Daloze
1bfe3accb3 Recommend ruby/setup-ruby's bundler-cache: true option
Manually caching gems has many issues:
* Not working if there is no Gemfile.lock but only a Gemfile
* Not having the OS version in the key, which might cause binary incompatibility with system libraries of different ABI version.
* Not taking the Ruby version in account.
* Not taking the Ruby ABI version of development builds into accounts, which cannot be done with a key, but needs the commit hash.
* Using restore-keys would grow the cache over time and have extra gems in the cache.
* Those reasons are summarized in https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby#caching-bundle-install-manually
2021-01-28 12:52:25 +01:00
Konrad Pabjan
354332455a
Merge pull request #434 from DanielHabenicht/patch-1
Update examples.md for NPM
2021-01-14 17:22:53 +01:00
Konrad Pabjan
3303695afa
Merge pull request #507 from odin-delrio/patch-1
Improved gradle cache key calculation example
2021-01-14 17:21:10 +01:00
Odín del Río
e64ab303d1
Improved gradle cache key calculation example 2021-01-13 22:09:00 +01:00
Konrad Pabjan
26c48dce83
Merge pull request #506 from actions/cache-matrix-example
Added a cache example when using matrix
2021-01-12 13:35:24 -05:00
Chris Patterson
72f66cfa6d
Added a cache example when using matrix 2021-01-12 13:29:18 -05:00
Konrad Pabjan
9f3a4d3e65
Merge pull request #443 from guilleijo/pipenv-example
Add example for python pipenv
2020-12-15 16:17:31 -05:00
Aiqiao Yan
7b630ee04f
Merge pull request #483 from actions/aiqiaoy/windows-cache-path
Use @actions/cache 1.0.5
2020-12-15 15:56:11 -05:00
Aiqiao Yan
d2583f08bc Run licenses cache 2020-12-11 15:37:37 -05:00
Aiqiao Yan
752e778edb Use @actions/cache 1.0.5 2020-12-11 14:53:36 -05:00
Josh Gross
a3047dcdce
Fix CODEOWNER team name (#480) 2020-12-07 15:50:21 -05:00
Konrad Pabjan
9c77c9dbfc
Merge pull request #470 from brcrista/patch-1
Add CODEOWNERS file
2020-11-25 15:25:27 -05:00
Brian Cristante
29cdd22c60
Create CODEOWNERS 2020-11-25 15:14:18 -05:00
Eric Meadows-Jönsson
62a4d75442
Also cache _build for Elixir 2020-11-24 15:52:21 +01:00
David Hadka
0781355a23
Upgrade @actions/cache to 1.0.4 (#451) v2.1.3 2020-11-06 08:23:07 -06:00
David Hadka
22c64ac772
Update @actions/core to 1.2.6 (#449) 2020-11-03 13:04:09 -06:00
Guillermo Eijo
cbbf882ea4 Add link to example to README 2020-10-22 22:04:58 -03:00
Guillermo Eijo
4557c6a937 Add example for python pipenv 2020-10-22 21:35:30 -03:00
David Hadka
8819edf476
Update to @actions/cache 1.0.3 (#438)
Update to version 1.0.3 of the `@actions/cache` module.  This pulls in the following changes:

* Add a small delay between retry attempts
* Do not retry on HTTP responses that are not retryable, such as 409 Conflicts
2020-10-20 13:33:34 -05:00
DanielHabenicht
19530ba135
Update examples.md 2020-10-14 02:51:53 +02:00
David Hadka
d1255ad936
Merge pull request #424 from actions/dhadka/upload-chunk-size
Adds input for upload chunk size
v2.1.2
2020-10-07 15:55:25 -05:00
Dave Hadka
68cfb2ccb7 Add units to description 2020-10-02 11:22:20 -05:00
Dave Hadka
cce3c03a74 Add new input to action.yml 2020-10-02 11:01:24 -05:00
Dave Hadka
4bceb75b5b Use parseInt instead of Number to handle empty strings 2020-10-02 10:55:30 -05:00
Dave Hadka
a6f1f4b32e Adds input for upload chunk size 2020-10-02 09:59:55 -05:00
David Hadka
d606e039ae
Merge pull request #421 from actions/dhadka/ghes
Caching action should no-op on GHES
2020-09-30 17:10:54 -05:00
Dave Hadka
d3e4f218f3 Use warning instead of info 2020-09-30 08:47:16 -05:00
Dave Hadka
55a5894438 Update dist 2020-09-29 14:12:21 -05:00
Dave Hadka
3f6dfcbcc4 Merge branch 'main' of http://github.com/actions/cache into dhadka/ghes 2020-09-29 14:01:40 -05:00
Dave Hadka
0f71d4ac9a Add tests for isGhes 2020-09-29 12:36:19 -05:00
Dave Hadka
2850cd8f45 Fix test 2020-09-29 10:23:21 -05:00
Dave Hadka
67f61c6e6b Add dist files 2020-09-29 10:15:07 -05:00
Dave Hadka
4d604c6cce No-op on GHES 2020-09-29 09:58:32 -05:00
Yang Cao
d33b5077b5
Merge pull request #412 from thboop/main
Add Licensed to attribute third party licenses
2020-09-23 17:18:37 -04:00
Thomas Boop
765fb6d234 Update contributing.md 2020-09-23 17:07:50 -04:00
Thomas Boop
11e417fa43 Add Licensed to attribute third party licenses 2020-09-09 11:39:29 -04:00
Shafiq Jetha
8b407f7777
Grammar fix (#405) 2020-09-08 13:10:51 -04:00
Aiqiao Yan
5ca27f25cb
Merge pull request #398 from smorimoto/release-2.1.1
Prepare 2.1.1
v2.1.1
2020-08-19 11:07:02 -04:00
Sora Morimoto
244fc0ba29 Prepare 2.1.1
Signed-off-by: Sora Morimoto <sora@morimoto.io>
2020-08-14 10:35:11 +09:00
Aiqiao Yan
943d2a4dac
Merge pull request #388 from noamtamim/patch-1
Fix indentation in last pip example
2020-08-13 14:13:05 -04:00
dependabot[bot]
01f7f296b1
Bump lodash from 4.17.15 to 4.17.19 (#377)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-13 14:08:41 -04:00
Sora Morimoto
ab48bf6f67
Update the @actions/cache package to the latest version (#390)
* Update the @actions/cache package to the latest version

Signed-off-by: Sora Morimoto <sora@morimoto.io>
2020-08-13 14:01:02 -04:00
Noam Tamim
59a8d125e7
Fix indentation in last pip example 2020-08-05 12:29:52 +03:00
David Hadka
d29c1df198
Merge pull request #383 from actions/dhadka/cache-1.0.1
Upgrade to cache 1.0.1
v2.1.0
2020-07-21 11:52:38 -05:00
Dave Hadka
d59a1464f2 Upgrade to cache 1.0.1 2020-07-21 11:26:57 -05:00
Aiqiao Yan
481a91ba10
Merge pull request #375 from actions/dhadka/bump-cache-version
Bump cache module to version 1.0.0
2020-07-20 14:54:43 -04:00
Aiqiao Yan
4978dc4f31
Merge pull request #358 from gaerfield/patch-1
fixes actions/cache#244
2020-07-16 15:48:28 -04:00
Aiqiao Yan
66891cb075
Merge pull request #373 from JohnTitor/patch-1
Remove redundant `#` from OCaml/Reason link
2020-07-16 15:43:10 -04:00
Aiqiao Yan
5c77066753
Merge pull request #359 from JLHwung/patch-1
add Yarn 2 cache example
2020-07-16 15:41:08 -04:00
Dave Hadka
24fb121989 Bump cache module to version 1.0.0 2020-07-16 12:35:30 -05:00
Aiqiao Yan
55bbcc2eab
Merge pull request #372 from actions/aiqiaoy/rename-master-to-main
Rename master to main
2020-07-16 10:33:55 -04:00
Yuki Okushi
c5475843b3
Remove redundant # from OCaml/Reason link 2020-07-16 11:44:16 +09:00
Aiqiao Yan
0065ae9713 Remove master from the branch list 2020-07-15 14:02:17 -04:00
Aiqiao Yan
4aa79d91d3 Rename master to main 2020-07-15 10:36:12 -04:00
Huáng Jùnliàng
5474af707f
add Yarn 2 cache example 2020-07-02 09:43:52 -04:00
gaerfield
591646a21e
fixes actions/cache#244 2020-07-01 10:30:03 +02:00
Marcono1234
eed9cfe64d
Add name for Maven example (#341) 2020-06-18 13:37:50 -04:00
Justin Hutchings
b773382817
Add CodeQL security scanning (#346) 2020-06-18 13:37:05 -04:00
Josh Gross
984ce638f0
Add note about using setup-node before cache (#351) 2020-06-15 15:55:57 -04:00
David Hadka
ff937cc950
Merge pull request #343 from actions/improve-string-split
Improve string split to handle whitespace
2020-06-02 17:41:04 -05:00
Dave Hadka
d60d2bef10 Improve string split 2020-06-02 17:07:33 -05:00
Aiqiao Yan
e561127c3e Merge pull request #329 from actions/aiyan/v2-release-doc
Update readme and examples to use v2
2020-06-02 17:07:06 -05:00
Aiqiao Yan
b8204782bb
Merge pull request #329 from actions/aiyan/v2-release-doc
Update readme and examples to use v2
v2.0.0
2020-05-26 15:35:50 -04:00
Aiqiao Yan
e6c708b5ce React to feedback 2020-05-26 15:31:33 -04:00
Aiqiao Yan
581312be20 Update readme and examples to use v2 2020-05-26 12:48:39 -04:00
Aiqiao Yan
9ab95382c8
Merge pull request #313 from actions/aiyan/use-cache-package
Switch cache action to use the cache node package
2020-05-20 15:26:12 -04:00
Aiqiao Yan
6c7d57dc97 Use 0.2.1 cache package 2020-05-20 15:20:07 -04:00
Josh Gross
2b83e91661
Add examples for creating a cache key (#312) 2020-05-20 10:54:39 -04:00
Aiqiao Yan
1034aaeec8 Testing fix for a bug in the cache package 2020-05-19 16:02:31 -04:00
Aiqiao Yan
bcc23b930f React to feeback and change to use 0.2.0 cache package 2020-05-19 15:53:25 -04:00
Aiqiao Yan
249a22026d Update workflow.yml 2020-05-18 11:32:03 -04:00
Aiqiao Yan
7f9517a009 Switch cache action to use the cache node package 2020-05-15 15:07:37 -04:00
Aiqiao Yan
16a133d9a7
Merge pull request #263 from actions/users/aiyan/allow-all-events
Allow all events to access cache
2020-05-15 14:13:16 -04:00
Justin Poehnelt
46fead7f5e
docs: add note about branch scope (#307)
* docs: add note about branch scope

* revert change
2020-05-15 13:28:56 -04:00
David Hadka
bac1a40c81
Merge pull request #306 from actions/with-retries
Add retries to all API calls
2020-05-11 16:56:45 -05:00
Aiqiao Yan
916cc60b3c
Merge pull request #300 from actions/aiyan/listen-on-error
error handling for stream
2020-05-11 16:00:51 -04:00
Aiqiao Yan
4967c8e6c5 error handling for stream 2020-05-11 15:21:21 -04:00
Dave Hadka
a0024e2bd0 Merge branch 'master' of http://github.com/actions/cache into with-retries 2020-05-11 12:55:11 -04:00
David Hadka
5ddc028cc8
Merge pull request #305 from actions/fix-upload-chunk
Fix upload chunk retries
2020-05-11 11:51:23 -05:00
Dave Hadka
05b13411a0 Add retries to all API calls 2020-05-11 11:11:25 -04:00