When using a .gitattributes file (instead of a .distignore ) we got the following error when deploying the plugin:
➤ Copying files...
ℹ︎ Using .gitattributes
fatal: detected dubious ownership in repository at '/github/workspace'
To add an exception for this directory, call:
git config --global --add safe.directory /github/workspace
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
This folder is not in our repo, it seems to be a github default folder so...
Our repo: https://github.com/AyeCode/google-maps-api-key
This error seems to be appearing for a few other actions recently
robotology/gh-action-nightly-merge#11
actions/checkout#766
The solution seems to be to either use the .distignore file or you need to add this to your deploy script:
# See https://github.com/actions/checkout/issues/766
git config --global --add safe.directory "$GITHUB_WORKSPACE"
When using a .gitattributes file (instead of a .distignore ) we got the following error when deploying the plugin:
This folder is not in our repo, it seems to be a github default folder so...
Our repo: https://github.com/AyeCode/google-maps-api-key
This error seems to be appearing for a few other actions recently
robotology/gh-action-nightly-merge#11
actions/checkout#766
The solution seems to be to either use the .distignore file or you need to add this to your deploy script: