awalsh128 / cache-apt-pkgs-action

Cache APT packages in GitHub Actions
Other
205 stars 35 forks source link

Permission denied error during caching installed packages. #47

Closed dj12djdjs closed 2 years ago

dj12djdjs commented 2 years ago

While attempting to cache redis-server

21:11:14   * Caching redis-server to /home/runner/cache-apt-pkgs/redis-server:5:5.0.7-2ubuntu0.1.tar.gz...
tar: etc/redis/redis.conf: Cannot open: Permission denied
tar: Exiting with failure status due to previous errors
Error: Process completed with exit code 123.

Full Log: https://github.com/dj12djdjs/apt-cache-redis/runs/8101754369?check_suite_focus=true

Action: https://github.com/dj12djdjs/apt-cache-redis/blob/main/.github/workflows/blank.yml

awalsh128 commented 2 years ago

This may just be a simple of case of needing sudo. Point your action rev towards dev and try again. I'll set up a regression sometime tomorrow when I can along with a new release.

dj12djdjs commented 2 years ago

@awalsh128 That did the trick! Thanks for the patch!

https://github.com/dj12djdjs/apt-cache-redis/runs/8127482677?check_suite_focus=true

awalsh128 commented 2 years ago

I released a patch as v1.1.1 and updated the v1 tag to match so you can switch off of dev now.