This commit is contained in:
Harsh Shandilya 2023-05-22 22:25:35 +05:30 committed by GitHub
parent ff07f57b92
commit 36138c74d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 40 deletions

View File

@ -1,11 +0,0 @@
on:
push:
branches:
- main
jobs:
bump-changelog:
runs-on: ubuntu-latest
steps:
- name: Accept all SDK licenses
run: yes | /usr/local/lib/android/sdk/tools/bin/sdkmanager --licenses

View File

@ -1,28 +0,0 @@
name: Warn on PRs to main branch
on:
pull_request:
types:
- opened
- reopened
branches:
- main
permissions:
pull-requests: write
jobs:
check-pr-base:
runs-on: ubuntu-latest
steps:
- name: Validate PR head and base branches
if: "${{ github.base_ref == 'main' && github.head_ref != 'staging' }}"
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3
with:
script: |
github.rest.issues.createComment({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
issue_number: context.payload.number,
body: `## :warning: Warning :warning:\nThis PR is targeting the main branch but did not originate from staging, please make sure this is intentional`,
});

View File

@ -9,4 +9,4 @@ jobs:
steps:
- name: Accept all SDK licenses
shell: bash
run: yes | $ANDROID_HOME/tools/bin/sdkmanager --licenses
run: yes 2>/dev/null | $ANDROID_HOME/tools/bin/sdkmanager --licenses