From 9a1d0edd097c6d0be7c04f81f334e8d6b972b81d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 11 Oct 2023 11:30:54 +0200 Subject: [PATCH] MOBILE-4362 github: Add release type to release workflow --- .github/workflows/release.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5f8078267..df32d924a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,22 @@ name: Release -on: workflow_dispatch +on: + workflow_dispatch: + inputs: + release_type: + description: 'Final release or beta' + required: true + type: choice + options: + - final + - beta jobs: release: if: github.repository == 'moodlemobile/moodleapp' runs-on: ubuntu-latest + env: + RELEASE_TYPE: ${{ github.event.inputs.release_type || 'final' }} steps: - uses: actions/checkout@v2 @@ -20,4 +31,4 @@ jobs: - name: Create release tags env: GIT_TOKEN: ${{ secrets.GIT_TOKEN }} - run: ./.github/scripts/release.sh + run: ./.github/scripts/release.sh $RELEASE_TYPE