This commit is contained in:
parent
ff07f57b92
commit
36138c74d0
|
@ -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
|
|
@ -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`,
|
||||
});
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue