Skip to content

test30

test30 #35

Workflow file for this run

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
# Set Current Date As Env Variable
- name: Setting Current Date as Env Variable
run: echo "date_today=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
# Constructing the GitTAG from versionName for creating a release.
- name: Constructing Git TAG
#run: echo "GIT_TAG=$(echo $(grep "versionName" "./app/build.gradle" | awk '{print $2}') | tr -d '"')" >> $GITHUB_ENV # get value versionName"0.1.0"
id: version
#run: GIT_TAG = $(echo $(grep "versionName" "./app/build.gradle" | awk '{print $2}') | tr -d '"') # get value versionName"0.1.0"
run: |
echo "::set-output name=GIT_TAG::$(tr -d '"' <<< $(grep "versionName" "./app/build.gradle" | awk '{print $2}'))"
# echo "IAP_NO_ADS=$(echo ${{ secrets.IAP_NO_ADS }} | cut -d'_' -f 2)" >> $GITHUB_ENV
echo "IAP_NO_ADS=${{ secrets.IAP_NO_ADS }} >> $GITHUB_ENV
- name: Print environment variable
run: echo "The value of IAP_NO_ADS is $(echo $IAP_NO_ADS | cut -c 1-6)"