fix: base64 decode in CI

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