fix: base64 decode in CI
Some checks failed
Auto Tag on Version Change / check-version (push) Successful in 3s
Build and Release APK / build (push) Failing after 6m2s

This commit is contained in:
2026-05-14 06:40:17 +05:00
parent 64ee2dfeb1
commit 1f97063956

View File

@@ -32,34 +32,34 @@ jobs:
echo "should_release=true" >> $GITHUB_OUTPUT
fi
- name: Extract and commit fastlane changelog
if: steps.version.outputs.should_release == 'true'
run: |
VERSION="${{ steps.version.outputs.version }}"
VERSION_CODE="${{ steps.version.outputs.version_code }}"
FASTLANE_DIR="fastlane/metadata/android/en-US/changelogs"
mkdir -p "$FASTLANE_DIR"
awk -v ver="$VERSION" '
BEGIN { found=0 }
/^## \[/ {
if (found) exit
if ($0 ~ "\\[" ver "\\]") { found=1; next }
}
found { print }
' CHANGELOG.md > "$FASTLANE_DIR/${VERSION_CODE}.txt"
git config user.name "Gitea Actions"
git config user.email "actions@gitea.local"
if git diff --quiet "$FASTLANE_DIR/${VERSION_CODE}.txt" 2>/dev/null; then
echo "No changelog changes to commit"
else
git add "$FASTLANE_DIR/${VERSION_CODE}.txt"
git commit -m "Add fastlane changelog for v${VERSION}"
git push origin main
fi
# - name: Extract and commit fastlane changelog
# if: steps.version.outputs.should_release == 'true'
# run: |
# VERSION="${{ steps.version.outputs.version }}"
# VERSION_CODE="${{ steps.version.outputs.version_code }}"
# FASTLANE_DIR="fastlane/metadata/android/en-US/changelogs"
#
# mkdir -p "$FASTLANE_DIR"
#
# awk -v ver="$VERSION" '
# BEGIN { found=0 }
# /^## \[/ {
# if (found) exit
# if ($0 ~ "\\[" ver "\\]") { found=1; next }
# }
# found { print }
# ' CHANGELOG.md > "$FASTLANE_DIR/${VERSION_CODE}.txt"
#
# git config user.name "Gitea Actions"
# git config user.email "actions@gitea.local"
#
# if git diff --quiet "$FASTLANE_DIR/${VERSION_CODE}.txt" 2>/dev/null; then
# echo "No changelog changes to commit"
# else
# git add "$FASTLANE_DIR/${VERSION_CODE}.txt"
# git commit -m "Add fastlane changelog for v${VERSION}"
# git push origin main
# fi
- name: Create and push tag
if: steps.version.outputs.should_release == 'true'