fix: base64 decode in CI
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user