-
Notifications
You must be signed in to change notification settings - Fork 26
60 lines (51 loc) · 1.73 KB
/
validate_pr.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
name: Validate PRs
on:
pull_request:
branches:
- develop
jobs:
cancel_previous:
name: Cancel previous runs
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
validate_pr:
name: Validate PRs on commit upload
runs-on: ubuntu-latest
needs: cancel_previous
steps:
- name: Checkout PR branch
uses: actions/checkout@v3
- name: Install fastlane-plugin-android_build_tools deploy key
uses: shimataro/ssh-key-action@v2.5.0
with:
key: ${{ secrets.ANDROID_BUILD_TOOLS_DEPLOY_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
- name: Set-up and configure JDK 11
uses: actions/setup-java@v3.9.0
with:
distribution: zulu
java-version: 11
cache: gradle
- name: Set-up and configure Ruby
uses: ruby/setup-ruby@v1.134.0
with:
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
- name: Install keysafe deploy key
uses: shimataro/ssh-key-action@v2.5.0
with:
key: ${{ secrets.KEYSAFE_DEPLOY_KEY }}
name: id_rsa
known_hosts: ${{ secrets.KNOWN_HOSTS }}
if_key_exists: replace
- name: Validate PR
env:
KEYSAFE_REPO_URL: ${{ secrets.KEYSAFE_REPO_URL }}
APP_KEYSAFE_NAME: ${{ secrets.APP_KEYSAFE_NAME }}
APP_KEYSAFE_PASSWORD: ${{ secrets.APP_KEYSAFE_PASSWORD }}
run: |
bundle exec fastlane validate_pr app_keysafe_name:"$APP_KEYSAFE_NAME" app_keysafe_password:"$APP_KEYSAFE_PASSWORD" artifact_type:AAB