-
Notifications
You must be signed in to change notification settings - Fork 3
63 lines (56 loc) · 1.71 KB
/
root.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Vividus Workflow
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '* 2 * * 6'
env:
RELEASE_VERSION: 0.6.0
jobs:
params:
name: Parse environments variables
runs-on: ubuntu-latest
outputs:
params: ${{ steps.env-vars.outputs.params }}
steps:
- name: install jq
run: pip install jq
- id: env-vars
name: Output environment variables
run: echo "::set-output name=params::$(echo $(jq -n 'env'))"
saucelabs-upload-by-schedule:
if: github.event_name == 'schedule'
needs: [ params ]
name: SauceLabs Storage Upload by Scheduler
uses: ./.github/workflows/saucelabs-upload.yml
with:
release-version: ${{ fromJson(needs.params.outputs.params).RELEASE_VERSION }}
secrets: inherit
android-ci:
if: github.event_name == 'push' || github.event_name == 'pull_request'
needs: [ params ]
name: Android App CI
uses: ./.github/workflows/android-ci.yml
with:
release-version: ${{ fromJson(needs.params.outputs.params).RELEASE_VERSION }}
secrets: inherit
ios-ci:
if: github.event_name == 'push' || github.event_name == 'pull_request'
needs: [ params ]
name: iOS App CI
uses: ./.github/workflows/ios-ci.yml
with:
release-version: ${{ fromJson(needs.params.outputs.params).RELEASE_VERSION }}
secrets: inherit
saucelabs-upload:
if: github.ref == 'refs/heads/main' && github.event_name != 'schedule'
needs: [ android-ci, ios-ci, params ]
name: SauceLabs Storage Upload
uses: ./.github/workflows/saucelabs-upload.yml
with:
release-version: ${{ fromJson(needs.params.outputs.params).RELEASE_VERSION }}
secrets: inherit