Skip to content

Commit

Permalink
ci: run android build only for non-main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
xianshenglu committed May 12, 2022
1 parent 4522ca1 commit 5eebe13
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/android_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ name: Android Build ## name of the workflow
on:
push:
pull_request:
branches:
- '!main'

jobs:
android-build:
if: ${{ github.ref_name != 'main' }}
name: Android Build
runs-on: ubuntu-latest # using ubuntu latest version / or you can use a specific version

Expand Down Expand Up @@ -59,8 +58,8 @@ jobs:
- name: test
id: test
run: |
echo "$GITHUB_WORKSPACE/${{ fromJson(steps.sign_app.outputs.signedReleaseFiles)[0] }}"
echo "$GITHUB_WORKSPACE/${{ fromJson(steps.sign_app.outputs.signedReleaseFiles)[1] }}"
echo "$GITHUB_WORKSPACE/${{ fromJson(steps.sign_app.outputs.signedReleaseFiles)[2] }}"
echo "$GITHUB_WORKSPACE/${{ fromJson(steps.sign_app.outputs.signedReleaseFiles)[3] }}"
echo "$GITHUB_WORKSPACE/${{ fromJson(steps.sign_app.outputs.signedReleaseFiles)[4] }}"
echo "${{ github.workspace }}/${{ fromJson(steps.sign_app.outputs.signedReleaseFiles)[0] }}"
echo "${{ github.workspace }}/${{ fromJson(steps.sign_app.outputs.signedReleaseFiles)[1] }}"
echo "${{ github.workspace }}/${{ fromJson(steps.sign_app.outputs.signedReleaseFiles)[2] }}"
echo "${{ github.workspace }}/${{ fromJson(steps.sign_app.outputs.signedReleaseFiles)[3] }}"
echo "${{ github.workspace }}/${{ fromJson(steps.sign_app.outputs.signedReleaseFiles)[4] }}"

0 comments on commit 5eebe13

Please sign in to comment.