-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.04 KB
/
CI.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
name: Build, test
on:
pull_request:
branches:
- "dev"
- "main"
concurrency:
group: ${{ github.base_ref }}
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test_bot:
uses: ./.github/workflows/build_and_test_bot.yml
with:
release: ${{ github.base_ref == 'main' }}
upload-artifact: true
secrets:
SHEET_ID: ${{ github.base_ref == 'main' && secrets.SHEET_ID_main || secrets.SHEET_ID_dev }}
build_flutter_apk:
uses: ./.github/workflows/build_flutter_apk.yml
with:
upload-artifact: true
secrets:
SHEET_ID: ${{ github.base_ref == 'main' && secrets.SHEET_ID_main || secrets.SHEET_ID_dev }}
# It should wait untill all checks will pass
auto-merge:
needs: [build_and_test_bot, build_flutter_apk]
runs-on: ubuntu-latest
# if: github.base_ref == 'main'
permissions:
pull-requests: write
contents: write
steps:
- uses: fastify/github-action-merge-dependabot@v3
with:
# target: minor
github-token: "${{ secrets.GITHUB_TOKEN }}"