From ba5cf6324a6b6b1572cb1c19c4530aed59f3de6f Mon Sep 17 00:00:00 2001 From: I-Al-Istannen Date: Mon, 28 Oct 2024 15:49:49 +0100 Subject: [PATCH] Allow specifying version --- .github/workflows/patch.yml | 1 + build.sh | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/patch.yml b/.github/workflows/patch.yml index b1eec2d..cecdb95 100644 --- a/.github/workflows/patch.yml +++ b/.github/workflows/patch.yml @@ -31,3 +31,4 @@ jobs: env: RELEASE_KEYSTORE: ${{ secrets.RELEASE_KEYSTORE }} RELEASE_PASSWORD: ${{ secrets.RELEASE_PASSWORD }} + TARGET_REV: ${{ github.event.inputs.version }} diff --git a/build.sh b/build.sh index 305d3f2..16382a3 100755 --- a/build.sh +++ b/build.sh @@ -14,6 +14,10 @@ git clone https://github.com/mattermost/mattermost-mobile pushd mattermost-mobile || exit 1 +if [ -n "$TARGET_REV" ]; then + git checkout "$TARGET_REV" +fi + for patch in ../*.patch; do echo "Applying $patch" git am "$patch"