Skip to content

Commit

Permalink
[#198] Test using shorten pr
Browse files Browse the repository at this point in the history
  • Loading branch information
doannimble committed Nov 3, 2023
1 parent bf73641 commit 59c0014
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 32 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/android_deploy_production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,11 @@ jobs:
uses: 8BitJonny/[email protected]
id: PR

- name: Generate release notes
env:
PR_CONTENT: ${{ steps.PR.outputs.pr_body }}
id: generate-release-notes
run: |
echo "RELEASE_NOTE_CONTENT=$PR_CONTENT" >> $GITHUB_OUTPUT
- name: Deploy Android Production to Firebase
uses: wzieba/[email protected]
with:
appId: ${{ vars.FIREBASE_ANDROID_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON }}
groups: ${{ vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS }}
releaseNotes: ${{steps.generate-release-notes.outputs.RELEASE_NOTE_CONTENT}}
releaseNotes: ${{ steps.PR.outputs.pr_body }}
file: build/app/outputs/flutter-apk/app-production-release.apk
10 changes: 2 additions & 8 deletions .github/workflows/android_deploy_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- develop
- chore/198-add-release-note-firebase-deploy

jobs:
build_and_deploy_android:
Expand Down Expand Up @@ -53,18 +54,11 @@ jobs:
uses: 8BitJonny/[email protected]
id: PR

- name: Generate release notes
env:
PR_TITLE: ${{ steps.PR.outputs.pr_title }}
id: generate-release-notes
run: |
echo "RELEASE_NOTE_CONTENT=$PR_TITLE" >> $GITHUB_OUTPUT
- name: Deploy Android Staging to Firebase
uses: wzieba/[email protected]
with:
appId: ${{ vars.FIREBASE_ANDROID_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON }}
groups: ${{ vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS }}
releaseNotes: ${{ steps.generate-release-notes.outputs.RELEASE_NOTE_CONTENT }}
releaseNotes: ${{ steps.PR.outputs.pr_title }}
file: build/app/outputs/flutter-apk/app-staging-debug.apk
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,11 @@ jobs:
uses: 8BitJonny/[email protected]
id: PR

- name: Generate release notes
env:
PR_CONTENT: ${{#mustacheCase}}steps.PR.outputs.pr_body{{/mustacheCase}}
id: generate-release-notes
run: |
echo "RELEASE_NOTE_CONTENT=$PR_CONTENT" >> $GITHUB_OUTPUT
- name: Deploy Android Production to Firebase
uses: wzieba/[email protected]
with:
appId: ${{#mustacheCase}}vars.FIREBASE_ANDROID_APP_ID{{/mustacheCase}}
serviceCredentialsFileContent: ${{#mustacheCase}}secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON{{/mustacheCase}}
groups: ${{#mustacheCase}}vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS{{/mustacheCase}}
releaseNotes: ${{#mustacheCase}}steps.generate-release-notes.outputs.RELEASE_NOTE_CONTENT{{/mustacheCase}}
releaseNotes: ${{#mustacheCase}}steps.PR.outputs.pr_body{{/mustacheCase}}
file: build/app/outputs/flutter-apk/app-production-debug.apk
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,11 @@ jobs:
uses: 8BitJonny/[email protected]
id: PR

- name: Generate release notes
env:
PR_TITLE: ${{#mustacheCase}}steps.PR.outputs.pr_title{{/mustacheCase}}
id: generate-release-notes
run: |
echo "RELEASE_NOTE_CONTENT=$PR_TITLE" >> $GITHUB_OUTPUT
- name: Deploy Android Staging to Firebase
uses: wzieba/[email protected]
with:
appId: ${{#mustacheCase}}vars.FIREBASE_ANDROID_APP_ID{{/mustacheCase}}
serviceCredentialsFileContent: ${{#mustacheCase}}secrets.FIREBASE_DISTRIBUTION_CREDENTIAL_JSON{{/mustacheCase}}
groups: ${{#mustacheCase}}vars.FIREBASE_DISTRIBUTION_TESTER_GROUPS{{/mustacheCase}}
releaseNotes: ${{#mustacheCase}}steps.generate-release-notes.outputs.RELEASE_NOTE_CONTENT{{/mustacheCase}}
releaseNotes: ${{#mustacheCase}}steps.PR.outputs.pr_title{{/mustacheCase}}
file: build/app/outputs/flutter-apk/app-staging-debug.apk

0 comments on commit 59c0014

Please sign in to comment.