I have the following GitHub action:
name: Rubocop
on: push
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Install Rubocop
run: gem install rubocop
- name: Rubocop
run: rubocop
When this action runs, I get the following error:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /var/lib/gems/2.5.0 directory.
How can I fix this?