Skip to content

Commit 8138fad

Browse files
committed
fix: use PAT token in checkout and git push directly
1 parent 760610b commit 8138fad

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/clone.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v2
14+
with:
15+
token: ${{ secrets.GH_PAT }}
1416

1517
- name: gh login
1618
run: echo "${{ secrets.GH_PAT }}" | gh auth login --with-token
@@ -84,8 +86,7 @@ jobs:
8486
git commit -m "Add clone count badge to README" || echo "No changes to commit"
8587
fi
8688
87-
- name: Push
88-
uses: ad-m/github-push-action@master
89-
with:
90-
github_token: ${{ secrets.GH_PAT }}
89+
- name: Push changes
90+
run: |
91+
git push origin main || echo "No changes to push"
9192

0 commit comments

Comments
 (0)