Skip to content

Commit 17211d8

Browse files
committed
Refactor GitHub Actions workflow to improve repository access and push changes
1 parent 2688e77 commit 17211d8

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

.github/workflows/python-publish.yml

+25-7
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,31 @@ jobs:
9999
git add .
100100
git commit -m "Update version to ${{ env.VERSION }}" || echo "No changes to commit"
101101
102-
- name: Push changes (Force)
103-
uses: ad-m/[email protected]
104-
with:
105-
github_token: ${{ secrets.GITHUB_TOKEN }}
106-
branch: develop
107-
directory: .
108-
force: true
102+
- name: Debug Repository Access
103+
env:
104+
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
105+
run: |
106+
echo "Checking repository access"
107+
git remote -v
108+
git config -l
109+
whoami
110+
111+
- name: Push changes alternative
112+
env:
113+
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
114+
run: |
115+
git config user.name github-actions
116+
git config user.email [email protected]
117+
git remote set-url origin https://${{ secrets.TOKEN_GITHUB }}@github.com/kssgarcia/test-solidspy-opt.git
118+
git push origin develop
119+
120+
# - name: Push changes (Force)
121+
# uses: ad-m/[email protected]
122+
# with:
123+
# github_token: ${{ secrets.GITHUB_TOKEN }}
124+
# branch: develop
125+
# directory: .
126+
# force: true
109127

110128
# Build and Publish Steps
111129
- name: Set up Python

0 commit comments

Comments
 (0)