Skip to content

Commit

Permalink
Merge branch 'main' into cross-sim-name
Browse files Browse the repository at this point in the history
  • Loading branch information
kyujin-cho committed May 16, 2024
2 parents f6bfe9a + 737a605 commit eb878b0
Show file tree
Hide file tree
Showing 23 changed files with 1,225 additions and 799 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: 'Auto Author Assign'

on:
pull_request_target:
types: [opened, reopened]

permissions:
pull-requests: write

jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/[email protected]
7 changes: 6 additions & 1 deletion .github/workflows/build-apk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,12 @@ jobs:
KEY_ALIAS: ${{ secrets.key-alias }}
KEY_PASSWORD: ${{ secrets.key-password }}
BUILD_TYPE: ${{ inputs.build-type }}
if: ${{ secrets.key-password != '' }}
if: ${{ env.KEY_PASSWORD != '' }}
- name: Rename APK
run: mv app-unsigned-aligned.apk dev.bluehouse.enablevolte.apk
env:
KEY_PASSWORD: ${{ secrets.key-password }}
if: ${{ env.KEY_PASSWORD == '' }}
- name: Upload APK
uses: actions/upload-artifact@v3
with:
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/build-debug-apk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: default

on:
push:
paths:
- 'app/src/**'
pull_request:
paths:
- 'app/src/**'
permissions:
pull-requests: write

jobs:
build-debug-apk:
needs: [lint]
if: github.event_name == 'pull_request'
uses: ./.github/workflows/build-apk.yml
with:
build-type: debug
secrets:
key-alias: ${{ secrets.DEBUG_KEY_ALIAS }}
keystore: ${{ secrets.DEBUG_KEYSTORE_B64 }}
key-password: ${{ secrets.DEBUG_KEY_PASSWORD }}
post-apk-link:
needs: [build-debug-apk]
runs-on: ubuntu-latest
steps:
- name: Post link to action run detail page
uses: actions/github-script@v6
with:
script: |
try {
const commentResult = await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `APK build completed! Visit [action run detail page](https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}) to download the APK to test this pull request.`
})
console.log(commentResult)
} catch (e) {
console.log("Comment not posted:")
console.log(e)
}
25 changes: 0 additions & 25 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,6 @@ jobs:
with:
report-path: build/*.xml # Support glob patterns by https://www.npmjs.com/package/@actions/glob
continue-on-error: false # If annotations contain error of severity, action-ktlint exit 1.
build-debug-apk:
needs: [lint]
if: github.event_name == 'pull_request'
uses: ./.github/workflows/build-apk.yml
with:
build-type: debug
secrets:
key-alias: ${{ secrets.DEBUG_KEY_ALIAS }}
keystore: ${{ secrets.DEBUG_KEYSTORE_B64 }}
key-password: ${{ secrets.DEBUG_KEY_PASSWORD }}
post-apk-link:
needs: [build-debug-apk]
runs-on: ubuntu-latest
steps:
- name: Post link to action run detail page
uses: actions/github-script@v6
with:
script: |
const commentResult = await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `APK build completed! Visit [action run detail page](https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}) to download the APK to test this pull request.`
})
console.log(commentResult)
build-release-apk:
needs: [lint]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
Expand Down
Loading

0 comments on commit eb878b0

Please sign in to comment.