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"