name: Android Permissions CI

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:
    name: Build and run tests
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: set up JDK 11
      uses: actions/setup-java@v2
      with:
        java-version: '11'
        distribution: 'temurin'
        cache: gradle

    - name: Grant execute permission for gradlew
      run: chmod +x gradlew
    - name: Build with Gradle
      run: ./gradlew build
    - name: Upload Reports
      uses: actions/upload-artifact@v2.3.1
      with:
        name: reports
        path: build/reports

name: PR Build

on:
  pull_request:
    branches: [ master ]

jobs:
  build:
    name: Build and run tests
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: set up JDK 11
      uses: actions/setup-java@v2
      with:
        java-version: '11'
        distribution: 'temurin'
        cache: gradle

    - name: Grant execute permission for gradlew
      run: chmod +x gradlew
    - name: Build with Gradle
      run: ./gradlew build
    - name: Upload Reports
      uses: actions/upload-artifact@v2.3.1
      with:
        name: reports
        path: build/reports

Modify current workflow to execute only for PRs.
Modify current workflow to execute only for PRs.



Co-authored-by: Shubhamay Das <94ef4642f61bdd79312e138ef5e2f32809618ded@gmail.com>