Skip to content

Commit

Permalink
Refactor GitHub Actions workflow to improve repository access and pus…
Browse files Browse the repository at this point in the history
…h changes
  • Loading branch information
kssgarcia committed Dec 10, 2024
1 parent 2688e77 commit 17211d8
Showing 1 changed file with 25 additions and 7 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,31 @@ jobs:
git add .
git commit -m "Update version to ${{ env.VERSION }}" || echo "No changes to commit"
- name: Push changes (Force)
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: develop
directory: .
force: true
- name: Debug Repository Access
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
run: |
echo "Checking repository access"
git remote -v
git config -l
whoami
- name: Push changes alternative
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
run: |
git config user.name github-actions
git config user.email [email protected]
git remote set-url origin https://${{ secrets.TOKEN_GITHUB }}@github.com/kssgarcia/test-solidspy-opt.git
git push origin develop
# - name: Push changes (Force)
# uses: ad-m/[email protected]
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# branch: develop
# directory: .
# force: true

# Build and Publish Steps
- name: Set up Python
Expand Down

0 comments on commit 17211d8

Please sign in to comment.