tailscale / github-action

A GitHub Action to connect your workflow to your Tailscale network.
BSD 3-Clause "New" or "Revised" License
566 stars 86 forks source link

Add cache actions and separate binary management to be compatible with caching #90

Closed zonorti closed 1 year ago

zonorti commented 1 year ago

This PR addresses issues #87 #88 #89 I added Cache@v3 action that checks for already downloaded binaries in the cache and reports to the download step if it should download. If binaries are not cached - download would happen and they would be saved to ${{ runner.temp }}/tailscale_${{inputs.version}}_${{env.TS_ARCH}}/ where cache action would copy from at the end of the workflow in cache post-action.

To try it out one can use uses: zonorti/github-action@github_cache, but beware - it would stop working after this PR is merged and branch is deleted.

All feedback is welcome 👂

zonorti commented 1 year ago

After experimenting with this action more I figured out that it still stays at 10 seconds of runtime, therefore caching makes no sense, unless CDN starts failing again. I'll close this PR therefore.