MOBILE-4362 github: Add release type to release workflow
parent
42f6fc6843
commit
9a1d0edd09
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue