From bfcc5007d5d231d08ccd2bf18878a374df801b79 Mon Sep 17 00:00:00 2001 From: Mandresy Randrianarinjaka Date: Thu, 6 Feb 2025 14:04:11 +0300 Subject: [PATCH] chore: Fix push to origin master --- .gitea/workflows/versioning.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/versioning.yml b/.gitea/workflows/versioning.yml index e636b25..8a4b95a 100644 --- a/.gitea/workflows/versioning.yml +++ b/.gitea/workflows/versioning.yml @@ -108,16 +108,20 @@ jobs: mv "$TEMP_CHANGELOG" "$CHANGELOG_FILE" + - name: Set remote URL + run: | + # Remplacer (ou mettre à jour) l'origin avec l'URL incluant le token + git remote set-url origin https://${{ secrets.GITEAACCESSTOKEN }}@${{ secrets.GITEAURL#https:// }}/mobiles/flutter-mobile.git + git remote -v + - name: Commit and Push Changes run: | git config --global user.email "gitea-actions@bot.com" git config --global user.name "Gitea Actions" - + git add pubspec.yaml CHANGELOG.md git commit -m "chore: bump version to $NEW_VERSION+$NEW_BUILD and update changelog" || echo "No changes to commit" - - git branch - git log - git remote -v - echo "🔗 Pushing to remote repository..." - git push origin /master + + echo "🔗 Pushing changes..." + # Ici, on pousse la branche courante (HEAD) vers la branche master sur l'origine + git push origin HEAD:master