Skip to content

Automatic project build #8

Automatic project build

Automatic project build #8

name: Build and sent to QA stageQa
on:
pull_request:
# types:
# - closed
branches: [ "dev" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v1
with: { java-version: 1.17 }
- name: Build and send application stageQa to App Distribution
env:
STORE_PASSWORD: ${{ secrets.STORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
CREDENTIAL_FILE_CONTENT: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
VERSION_NAME: 1.${{ GITHUB_RUN_NUMBER }}

Check failure on line 25 in .github/workflows/sendAppToQaAfterMergeStageQa.yml

View workflow run for this annotation

GitHub Actions / Build and sent to QA stageQa

Invalid workflow file

The workflow is not valid. .github/workflows/sendAppToQaAfterMergeStageQa.yml (Line: 25, Col: 25): Unrecognized named-value: 'GITHUB_RUN_NUMBER'. Located at position 1 within expression: GITHUB_RUN_NUMBER
run: |
echo "$CREDENTIAL_FILE_CONTENT" > ./app/serviceCredentialsFile.json
echo "App type: stageQa" >> ./app/src/releaseNotes.txt
echo "buildNumber = ${GITHUB_RUN_NUMBER}" >> ./app/src/releaseNotes.txt
echo "versionName = ${VERSION_NAME}" >> ./app/src/releaseNotes.txt
./gradlew appDistributionToQaStageQa
- name: Check status
run: echo "Check build status and send status"
- name: Set failed if build failed
if: failure()
run: |
echo "::error::Build or send build stageQa to App Distribution failed"