fix: Update the documentation (#160)
* fix: Update the documentation and remove the unsafe directory functionality * docs: Adjust the used checkout version Co-authored-by: Tonye Jack <jtonye@ymail.com> --------- Co-authored-by: Tonye Jack <jtonye@ymail.com>
This commit is contained in:
committed by
GitHub
parent
fc0cf17cf3
commit
fcea09907c
11
README.md
11
README.md
@ -73,7 +73,7 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
|
||||
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
|
||||
@ -287,15 +287,6 @@ jobs:
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
Please be aware, if your job fails and the corresponding output log looks like the following error, update your used version of the action to `ad-m/github-push-action@master` and check the used version of the `checkout` action (v2 is required):
|
||||
```log
|
||||
Push to branch ***************
|
||||
fatal: unsafe repository ('/github/workspace' is owned by someone else)
|
||||
To add an exception for this directory, call:
|
||||
|
||||
git config --global --add safe.directory /github/workspace
|
||||
```
|
||||
|
||||
If you see the following error inside the output of the job, and you want to update an existing Tag:
|
||||
```log
|
||||
To https://github.com/Test/test_repository
|
||||
|
2
start.sh
2
start.sh
@ -51,8 +51,6 @@ else
|
||||
remote_repo="${INPUT_GITHUB_URL_PROTOCOL}//oauth2:${INPUT_GITHUB_TOKEN}@${INPUT_GITHUB_URL}/${REPOSITORY}.git"
|
||||
fi
|
||||
|
||||
git config --local --add safe.directory ${INPUT_DIRECTORY}
|
||||
|
||||
if ! ${INPUT_FORCE_WITH_LEASE}; then
|
||||
ADDITIONAL_PARAMETERS="${remote_repo} HEAD:${INPUT_BRANCH}"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user