Skip to content

Commit eeabbbc

Browse files
committed
Replace ad-m/github-push-action with direct git push
Third-party action still used github-actions[bot] identity. Use git remote set-url with SECRET_TOKEN directly instead.
1 parent 1bfac5e commit eeabbbc

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/clone-count.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ jobs:
9494
fi
9595
9696
- name: Push changes
97-
uses: ad-m/github-push-action@master
98-
with:
99-
github_token: ${{ secrets.SECRET_TOKEN }}
97+
env:
98+
SECRET_TOKEN: ${{ secrets.SECRET_TOKEN }}
99+
GH_REPO: ${{ github.repository }}
100+
run: |
101+
git remote set-url origin "https://x-access-token:$SECRET_TOKEN@github.com/$GH_REPO.git"
102+
git push origin main || echo "Nothing to push"

0 commit comments

Comments
 (0)