-
Notifications
You must be signed in to change notification settings - Fork 37
34 lines (29 loc) · 1.16 KB
/
merged-action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Overview
# This GitHub Action manages actions to be taken upon the merging of pull requests.
# It triggers automatically upon the merging of a pull request into the main branch,
# facilitating streamlined post-merge processes such as deployment.
# Example:
# 1. Mark PR with releaseAfterMerge tag
# 2. Provide short description in description of the PR (instead of template)
# 3. Build will be sended to Play Store/TestFlight with provided description for internal testing
name: Action for Merged PR [TRIGGER]
on:
pull_request:
types:
- closed
jobs:
distribute_apps:
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'releaseAfterMerge')
name: Distribute Apps
uses: ./.github/workflows/distribute.yml
secrets: inherit
with:
STORIES_ENABLED: true
BUILD_DESCRIPTION: ${{github.event.pull_request.body}}
send_to_review:
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'releaseAfterMerge')
name: Submit latest to Review
uses: ./.github/workflows/review-latest.yml
secrets: inherit
needs:
- distribute_apps