Skip to content

Commit

Permalink
1. Added yml for sendAppToQaAfterMergeProdQa.yml
Browse files Browse the repository at this point in the history
2. Added yml for sendAppToQaAfterMergeStageQa.yml
3. Both scenario execute in pull request for testing purpose
  • Loading branch information
JudjinGM committed Nov 29, 2023
1 parent c4b3837 commit 7d09e13
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/sendAppToQaAfterMergeProdQa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

name: Build and sent to QA prodQa

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 prodQa to App Distribution
env:
CREDENTIAL_FILE_CONTENT: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
run: |
echo CREDENTIAL_FILE_CONTENT > ./app/serviceCredentialsFile.json
echo "App type: prodQa" >> ./app/releaseNotes.txt
echo "buildNumber=${GITHUB_RUN_NUMBER}" >> ./app/releaseNotes.txt
./gradlew appDistributionToQaProdQa
- 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 prodQa to App Distribution failed"
34 changes: 34 additions & 0 deletions .github/workflows/sendAppToQaAfterMergeStageQa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

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:
CREDENTIAL_FILE_CONTENT: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
run: |
echo CREDENTIAL_FILE_CONTENT > ./app/serviceCredentialsFile.json
echo "App type: stageQa" >> ./app/releaseNotes.txt
echo "buildNumber=${GITHUB_RUN_NUMBER}" >> ./app/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"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
.externalNativeBuild
.cxx
local.properties
/app/serviceCredentialsFile.json

0 comments on commit 7d09e13

Please sign in to comment.