-
Notifications
You must be signed in to change notification settings - Fork 1.4k
chore: changelog in beta release #6899
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
7038b2c
8e7f268
1beeb24
0ad4ab6
54f2427
1dbe63d
8b4f098
89b447a
b93c791
c091dae
e900697
8427d61
ae13fac
41508cf
97af463
74c6f64
3730528
87cf200
2786906
e9a11dd
381f35a
a5f7814
5ce95ac
2da31d9
4461b9f
6afe1de
391ea9e
eaf9c69
fa430f6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -72,7 +72,7 @@ jobs: | |
| upload-android: | ||
| name: Upload | ||
| runs-on: ubuntu-latest | ||
| needs: [upload-hold] | ||
| needs: [build-android, upload-hold] | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change has been made, so I can access |
||
| if: ${{ inputs.type == 'official' && (always() && (needs.upload-hold.result == 'success' || needs.upload-hold.result == 'skipped')) }} | ||
| steps: | ||
| - name: Checkout Repository | ||
|
|
@@ -85,7 +85,7 @@ jobs: | |
| trigger: ${{ inputs.trigger }} | ||
| FASTLANE_GOOGLE_SERVICE_ACCOUNT: ${{ secrets.FASTLANE_GOOGLE_SERVICE_ACCOUNT }} | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| BUILD_VERSION: ${{ needs.upload-hold.outputs.BUILD_VERSION }} | ||
| BUILD_VERSION: ${{ needs.build-android.outputs.BUILD_VERSION }} | ||
|
|
||
| upload-internal: | ||
| name: Internal Sharing | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| name: Generate Release Changelog | ||
|
|
||
| on: | ||
| workflow_call: | ||
|
|
||
| jobs: | ||
| generate-changelog: | ||
| name: Generate changelog | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Generate changelog | ||
| shell: bash | ||
| run: | | ||
| LATEST_RELEASE_TAG=$(git tag --sort=-creatordate | head -n 1) | ||
| git log "$LATEST_RELEASE_TAG"..HEAD --pretty=format:"- %s" --no-merges > changelog.txt | ||
| if [ ! -s changelog.txt ]; then | ||
| echo "- Improvements and bug fixes" > changelog.txt | ||
| fi | ||
|
Comment on lines
+17
to
+26
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Handle the case when no tags exist in the repository. If the repository has no tags, Proposed fix run: |
LATEST_RELEASE_TAG=$(git tag --sort=-creatordate | head -n 1)
+ if [ -z "$LATEST_RELEASE_TAG" ]; then
+ echo "- Improvements and bug fixes" > changelog.txt
+ exit 0
+ fi
+
git log "$LATEST_RELEASE_TAG"..HEAD --pretty=format:"- %s" --no-merges > changelog.txt
if [ ! -s changelog.txt ]; then
echo "- Improvements and bug fixes" > changelog.txt
fi🤖 Prompt for AI Agents |
||
| - name: Upload changelog artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: release-changelog | ||
| path: changelog.txt | ||
| retention-days: 15 | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UTF-8 truncation may produce invalid characters; variables should be quoted.
Two issues:
Byte vs character mismatch: Play Store limit is 500 characters, but
wc -ccounts bytes andhead -ctruncates at byte boundaries. For multi-byte UTF-8 characters (e.g., emojis, accented letters), this could:Unquoted variables:
$BUILD_VERSIONshould be quoted to handle unexpected characters safely.🔧 Proposed fix with character-based truncation
- name: Prepare Play Store changelog metadata if: ${{ inputs.trigger == 'develop' }} run: | mkdir -p android/fastlane/metadata/android/en-US/changelogs if [ -f changelog.txt ]; then - size=$(wc -c < changelog.txt) + # Count characters, not bytes (for UTF-8 safety) + char_count=$(wc -m < changelog.txt) - if [ "$size" -gt 500 ]; then - head -c 497 changelog.txt > android/fastlane/metadata/android/en-US/changelogs/$BUILD_VERSION.txt - printf "..." >> android/fastlane/metadata/android/en-US/changelogs/$BUILD_VERSION.txt + if [ "$char_count" -gt 500 ]; then + # Truncate by characters to avoid breaking UTF-8 + cut -c1-497 changelog.txt > "android/fastlane/metadata/android/en-US/changelogs/${BUILD_VERSION}.txt" + printf "..." >> "android/fastlane/metadata/android/en-US/changelogs/${BUILD_VERSION}.txt" else - cat changelog.txt > android/fastlane/metadata/android/en-US/changelogs/$BUILD_VERSION.txt + cat changelog.txt > "android/fastlane/metadata/android/en-US/changelogs/${BUILD_VERSION}.txt" fi else - printf "Internal improvements and bug fixes" > android/fastlane/metadata/android/en-US/changelogs/$BUILD_VERSION.txt + printf "Internal improvements and bug fixes" > "android/fastlane/metadata/android/en-US/changelogs/${BUILD_VERSION}.txt" fi shell: bash env: BUILD_VERSION: ${{ inputs.BUILD_VERSION }}🤖 Prompt for AI Agents