We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bfac5e commit eeabbbcCopy full SHA for eeabbbc
1 file changed
.github/workflows/clone-count.yml
@@ -94,6 +94,9 @@ jobs:
94
fi
95
96
- name: Push changes
97
- uses: ad-m/github-push-action@master
98
- with:
99
- github_token: ${{ secrets.SECRET_TOKEN }}
+ env:
+ SECRET_TOKEN: ${{ secrets.SECRET_TOKEN }}
+ 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