MOBILE-4362 github: Add release type to release workflow

main
Pau Ferrer Ocaña 2023-10-11 11:30:54 +02:00
parent 42f6fc6843
commit 9a1d0edd09
1 changed files with 13 additions and 2 deletions

View File

@ -1,11 +1,22 @@
name: Release name: Release
on: workflow_dispatch on:
workflow_dispatch:
inputs:
release_type:
description: 'Final release or beta'
required: true
type: choice
options:
- final
- beta
jobs: jobs:
release: release:
if: github.repository == 'moodlemobile/moodleapp' if: github.repository == 'moodlemobile/moodleapp'
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
RELEASE_TYPE: ${{ github.event.inputs.release_type || 'final' }}
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -20,4 +31,4 @@ jobs:
- name: Create release tags - name: Create release tags
env: env:
GIT_TOKEN: ${{ secrets.GIT_TOKEN }} GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
run: ./.github/scripts/release.sh run: ./.github/scripts/release.sh $RELEASE_TYPE