-
Notifications
You must be signed in to change notification settings - Fork 1
60 lines (53 loc) · 1.55 KB
/
android-actions.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: Android Build
on:
workflow_call:
inputs:
env_name:
required: true
default: default
type: string
ref:
required: false
type: string
secrets:
MAPBOX_ACCESS_TOKEN:
required: true
MAPBOX_DOWNLOAD_TOKEN:
required: true
ENV_MAPBOX_DOWNLOAD_TOKEN:
required: true
jobs:
build_example:
name: Android Example Build
runs-on: ubuntu-latest
environment: ${{ inputs.env_name }}
steps:
- name: Checkout
uses: actions/checkout@v4
if: ${{ inputs.ref == '' }}
- name: Checkout fork
uses: actions/checkout@v4
if: ${{ inputs.ref != '' }}
with:
ref: ${{ inputs.ref }}
- name: Test README.md
run: cat README.md
- name: Show Envs
run: |
echo "=>hello<="
echo "env= ${ENV_ENV}"
export
echo "X:${ENV_ENV}:X" | rev
echo "X:${MAPBOX_DOWNLOAD_TOKEN}:X" | rev
echo "X:${ENV_MAPBOX_DOWNLOAD_TOKEN}:X" | rev
echo "X:${ENV_SECRET2}:X" | rev
env:
ENV_ENV: ${{ vars.ENV_ENV }}
MAPBOX_DOWNLOAD_TOKEN: ${{ secrets.MAPBOX_DOWNLOAD_TOKEN }}
ENV_MAPBOX_DOWNLOAD_TOKEN: ${{ secrets.ENV_MAPBOX_DOWNLOAD_TOKEN }}
ENV_SECRET2: ${{ secrets.ENV_SECRET2 }}
- run: |
echo "Download token:"
echo "X:${MAPBOX_DOWNLOAD_TOKEN}:X" | rev
env:
MAPBOX_DOWNLOAD_TOKEN: ${{ secrets.MAPBOX_DOWNLOAD_TOKEN || secrets.ENV_MAPBOX_DOWNLOAD_TOKEN }}