Skip to content

Commit fcea099

Browse files
ZPascaljackton1
andauthored
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>
1 parent fc0cf17 commit fcea099

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
build:
7474
runs-on: ubuntu-latest
7575
steps:
76-
- uses: actions/checkout@v2
76+
- uses: actions/checkout@v4
7777
with:
7878
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
7979
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
@@ -287,15 +287,6 @@ jobs:
287287

288288
## Troubleshooting
289289

290-
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):
291-
```log
292-
Push to branch ***************
293-
fatal: unsafe repository ('/github/workspace' is owned by someone else)
294-
To add an exception for this directory, call:
295-
296-
git config --global --add safe.directory /github/workspace
297-
```
298-
299290
If you see the following error inside the output of the job, and you want to update an existing Tag:
300291
```log
301292
To https://github.com/Test/test_repository

start.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ else
5151
remote_repo="${INPUT_GITHUB_URL_PROTOCOL}//oauth2:${INPUT_GITHUB_TOKEN}@${INPUT_GITHUB_URL}/${REPOSITORY}.git"
5252
fi
5353

54-
git config --local --add safe.directory ${INPUT_DIRECTORY}
55-
5654
if ! ${INPUT_FORCE_WITH_LEASE}; then
5755
ADDITIONAL_PARAMETERS="${remote_repo} HEAD:${INPUT_BRANCH}"
5856
fi

0 commit comments

Comments
 (0)