-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor GitHub Actions workflow to improve repository access and pus…
…h changes
- Loading branch information
Showing
1 changed file
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|