Merge pull request 'dev' (#28) from dev into master

Reviewed-on: #28
This commit is contained in:
fanantenana 2025-02-06 12:20:50 +00:00
commit deed4c60b9
2 changed files with 8 additions and 23 deletions

View File

@ -26,14 +26,15 @@ jobs:
- name: Find commits from merged pull request
id: get_commits
run: |
COMMITS=$(git log HEAD^..HEAD --oneline --no-merges)
# Concatène les commits en une seule ligne, séparés par ";;"
COMMITS=$(git log HEAD^..HEAD --oneline --no-merges | paste -sd ";;" -)
if [ -z "$COMMITS" ]; then
echo "No commits found in the merged PR."
exit 0
fi
echo "Commits from merged PR:"
echo "$COMMITS"
# On exporte la variable de façon simple
# On exporte la variable en une seule ligne
echo "COMMITS=$COMMITS" >> "$GITHUB_ENV"
- name: Extract current version
@ -130,13 +131,13 @@ jobs:
- name: Generate Changelog for merged PR
run: |
echo "DEBUG: Commits = [${{ env.COMMITS }}]"
echo "DEBUG: NEW_VERSION = [${{ env.NEW_VERSION }}]"
echo "DEBUG: NEW_BUILD = [${{ env.NEW_BUILD }}]"
echo "DEBUG: Raw COMMITS = [${{ env.COMMITS }}]"
# Reconstruire la liste des commits en remplaçant ";;" par des retours à la ligne
COMMITS=$(echo "${{ env.COMMITS }}" | sed 's/;;/\n/g')
echo "DEBUG: COMMITS after conversion = [$COMMITS]"
CHANGELOG_FILE="CHANGELOG.md"
DATE=$(date +"%Y-%m-%d")
COMMITS="${{ env.COMMITS }}"
NEW_VERSION="${{ env.NEW_VERSION }}"
NEW_BUILD="${{ env.NEW_BUILD }}"
@ -185,7 +186,6 @@ jobs:
echo "${MISC:-No miscellaneous changes found.}"
echo ""
# On conserve l'ancien contenu du changelog en bas
cat "$CHANGELOG_FILE"
} > "$TEMP_CHANGELOG"

View File

@ -13,21 +13,6 @@ class MyApp extends StatelessWidget {
return MaterialApp(
title: 'Flutter test',
theme: ThemeData(
// This is the theme of your application.
//
// TRY THIS: Try running your application with "flutter run". You'll see
// the application has a purple toolbar. Then, without quitting the app,
// try changing the seedColor in the colorScheme below to Colors.green
// and then invoke "hot reload" (save your changes or press the "hot
// reload" button in a Flutter-supported IDE, or press "r" if you used
// the command line to start the app).
//
// Notice that the counter didn't reset back to zero; the application
// state is not lost during the reload. To reset the state, use hot
// restart instead.
//
// This works for code too, not just values: Most code changes can be
// tested with just a hot reload.
colorScheme: ColorScheme.fromSeed(seedColor: Colors.orange),
useMaterial3: true,
),