From 8f0565717cc71c2ef116834b0b09e4c91a3aed41 Mon Sep 17 00:00:00 2001 From: Imran Remtulla Date: Sun, 30 Jun 2024 13:05:07 -0400 Subject: [PATCH] temp --- .github/workflows/release.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 19e5b7cd..bc88098b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,10 @@ on: beta: type: boolean description: Is beta? - + draft: + type: boolean + description: Is draft? + jobs: build: runs-on: ubuntu-latest @@ -35,13 +38,7 @@ jobs: - name: Check submodule id: check_submodule run: | - SUBMODULE_COMMIT_LONG="$(git submodule status | head -1 | tail -c +2 | awk '{print $1}')" - FLUTTER_COMMIT_SHORT="$(flutter --version | head -2 | tail -1 | awk '{print $4}')" - echo "SUBMODULE_COMMIT_LONG=$SUBMODULE_COMMIT_LONG, FLUTTER_COMMIT_SHORT=$FLUTTER_COMMIT_SHORT" - if ! [[ "$SUBMODULE_COMMIT_LONG" =~ ^$FLUTTER_COMMIT_SHORT ]]; then - echo "Your submodule has not been updated!" - exit 1 - fi + git checkout ${{ inputs.checkout }} - name: Extract Version id: extract_version @@ -92,5 +89,6 @@ jobs: token: ${{ secrets.GH_ACCESS_TOKEN }} tag: "${{ steps.extract_version.outputs.tag }}" prerelease: "${{ steps.extract_version.outputs.beta }}" + draft: "${{ inputs.draft }}" artifacts: ./build/app/outputs/flutter-apk/*-release*.apk* generateReleaseNotes: true