Skip to content

Commit df24555

Browse files
refactor(action): change git cmd to checkout
chore(action - checkout): reduce settings that are already standard
1 parent 3861997 commit df24555

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/gen_md_files.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,9 @@ jobs:
3030
echo "################################################################" && bash -c "echo KEY=$KEY"
3131
3232
- name: clone
33-
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
run: |
36-
git config --global --add safe.directory $GITHUB_WORKSPACE
37-
git clone https://github-actions:$GITHUB_TOKEN@${GITHUB_SERVER_URL##*/}/$GITHUB_REPOSITORY.git $GITHUB_WORKSPACE --branch $GITHUB_REF_NAME --depth=1 --single-branch
33+
uses: actions/checkout@main
34+
with:
35+
clean: false
3836

3937
- name: generate
4038
run: |

0 commit comments

Comments
 (0)