From 9a9fb85ad886867ae6928210579c86fe2390c788 Mon Sep 17 00:00:00 2001 From: Vince Grassia <593223+vgrassia@users.noreply.github.com> Date: Thu, 14 Mar 2024 16:06:51 +0000 Subject: [PATCH] Add version codes to GitHub step summary (#3081) --- .github/workflows/build.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d83be0bb2..87d3d36d2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -146,10 +146,7 @@ jobs: - name: Increment version run: | BUILD_NUMBER=$((3000 + $GITHUB_RUN_NUMBER)) - - echo "########################################" - echo "##### Setting Version Code $BUILD_NUMBER" - echo "########################################" + echo "##### Setting Android Version Code to $BUILD_NUMBER" | tee -a $GITHUB_STEP_SUMMARY sed -i "s/android:versionCode=\"1\"/android:versionCode=\"$BUILD_NUMBER\"/" \ ./${{ env.android_folder_path_bash }}/AndroidManifest.xml @@ -358,7 +355,7 @@ jobs: - name: Increment version run: | BUILD_NUMBER=$((3000 + $GITHUB_RUN_NUMBER)) - echo "##### Setting Version Code $BUILD_NUMBER" + echo "##### Setting F-Droid Version Code to $BUILD_NUMBER" | tee -a $GITHUB_STEP_SUMMARY sed -i "s/android:versionCode=\"1\"/android:versionCode=\"$BUILD_NUMBER\"/" \ ./${{ env.android_manifest_path }} @@ -521,9 +518,7 @@ jobs: - name: Increment version run: | BUILD_NUMBER=$((100 + $GITHUB_RUN_NUMBER)) - - echo "##### Setting CFBundleVersion $BUILD_NUMBER" - echo "### CFBundleVersion $BUILD_NUMBER" >> $GITHUB_STEP_SUMMARY + echo "##### Setting iOS CFBundleVersion to $BUILD_NUMBER" | tee -a $GITHUB_STEP_SUMMARY perl -0777 -pi.bak -e 's/CFBundleVersion<\/key>\s*1<\/string>/CFBundleVersion<\/key>\n\t'"$BUILD_NUMBER"'<\/string>/' ./${{ env.ios_folder_path }}/Info.plist perl -0777 -pi.bak -e 's/CFBundleVersion<\/key>\s*1<\/string>/CFBundleVersion<\/key>\n\t'"$BUILD_NUMBER"'<\/string>/' ./src/iOS.Extension/Info.plist