chore: Fix push to origin master
All checks were successful
versioning-and-changelog / versioning_and_changelog (pull_request) Successful in 17s

This commit is contained in:
Mandresy Randrianarinjaka 2025-02-06 14:04:11 +03:00
parent 9775a35865
commit bfcc5007d5

View File

@ -108,16 +108,20 @@ jobs:
mv "$TEMP_CHANGELOG" "$CHANGELOG_FILE" 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 - name: Commit and Push Changes
run: | run: |
git config --global user.email "gitea-actions@bot.com" git config --global user.email "gitea-actions@bot.com"
git config --global user.name "Gitea Actions" git config --global user.name "Gitea Actions"
git add pubspec.yaml CHANGELOG.md 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 commit -m "chore: bump version to $NEW_VERSION+$NEW_BUILD and update changelog" || echo "No changes to commit"
git branch echo "🔗 Pushing changes..."
git log # Ici, on pousse la branche courante (HEAD) vers la branche master sur l'origine
git remote -v git push origin HEAD:master
echo "🔗 Pushing to remote repository..."
git push origin /master