-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (35 loc) · 1.71 KB
/
test.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
name: Test
env:
# The name of the main module repository
main_project_module: app
on:
push:
branches:
# Change this to master once everything is setup.
- 'test'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Setting up secrets as environment variables
# run: echo "The value of GIT_TAG1 is $(echo $GIT_TAG1 | cut -c 1-6)"
- name: Getting Github release TAG from version name of build.gradle
id: version_name
run: echo "::set-output name=VERSION_NAME::$(tr -d '"' <<< $(grep "versionName" "./app/build.gradle" | awk '{print $2}'))"
- name: Initializing System
run: |
echo "DATE_TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
echo "IAP_NO_ADS=$(echo ${{ secrets.IAP_NO_ADS }})" >> $GITHUB_ENV
echo "PLACEMENT_BANNER_1=$(echo ${{ secrets.PLACEMENT_BANNER_1 }})" >> $GITHUB_ENV
echo "PLACEMENT_BANNER_1=$(echo ${{ secrets.PLACEMENT_BANNER_1 }})" >> $GITHUB_ENV
echo "PLACEMENT_BANNER_2=$(echo ${{ secrets.PLACEMENT_BANNER_2 }})" >> $GITHUB_ENV
echo "PLACEMENT_INTERSTITIAL=$(echo ${{ secrets.PLACEMENT_INTERSTITIAL }})" >> $GITHUB_ENV
echo "PLAY_CONSOLE_APP_RSA_KEY=$(echo ${{ secrets.PLAY_CONSOLE_APP_RSA_KEY }})" >> $GITHUB_ENV
echo "UNITY_APP_ID=$(echo ${{ secrets.UNITY_APP_ID }})" >> $GITHUB_ENV
echo "GIT_TAG=$(echo ${{ steps.version_name.outputs.VERSION_NAME }})" >> $GITHUB_ENV
- name: Print environment variable
run:
echo "The value of GIT_TAG is $(echo ${{ steps.version_name.outputs.VERSION_NAME }} | cut -c 1-6)"