Skip to content

Commit 18cf496

Browse files
committed
push 5
1 parent b7212e8 commit 18cf496

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/push.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ jobs:
5858
steps:
5959
- name: Checkout
6060
uses: actions/checkout@v3
61+
with:
62+
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
63+
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
6164

6265
# - name: Download binary
6366
# uses: actions/download-artifact@v3
@@ -68,8 +71,6 @@ jobs:
6871
- name: Create file
6972
run: |
7073
echo a > file.txt
71-
git checkout origin/ci
72-
git pull
7374
7475
- name: Commit & Push changes
7576
uses: actions-js/push@master

0 commit comments

Comments
 (0)