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