Trigger on beta commit message

This commit is contained in:
Davide De Rosa 2021-11-30 12:41:42 +01:00
parent 13896c7396
commit 8653f059b8
2 changed files with 13 additions and 2 deletions

View File

@ -1,7 +1,9 @@
name: Public Beta name: Public Beta
on: on:
workflow_dispatch: push:
branches:
- 'master'
env: env:
APP_STORE_CONNECT_API_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY }} APP_STORE_CONNECT_API_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY }}
@ -20,8 +22,16 @@ env:
CHANGELOG_PREFACE: ${{ secrets.CHANGELOG_PREFACE }} CHANGELOG_PREFACE: ${{ secrets.CHANGELOG_PREFACE }}
jobs: jobs:
check_beta:
if: contains(github.event.head_commit.message, 'Attempt beta release')
runs-on: ubuntu-latest
steps:
- name: Check beta commit
run: |
echo
build_upload_ios: build_upload_ios:
runs-on: macos-11 runs-on: macos-11
needs: check_beta
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -39,6 +49,7 @@ jobs:
bundle exec fastlane --env ios,beta store_beta bundle exec fastlane --env ios,beta store_beta
build_upload_mac: build_upload_mac:
runs-on: macos-11 runs-on: macos-11
needs: check_beta
timeout-minutes: 60 timeout-minutes: 60
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2

@ -1 +1 @@
Subproject commit a35886548dd3068e4173d51dd448288b45ad3eff Subproject commit 62305b8d915585bb8f7199c7a808eb7b57793339