Reduce redundant workflow runs

This commit is contained in:
kuekhaoyang
2026-04-02 21:17:00 +08:00
parent 644cc3993b
commit f66ca2fd3e
2 changed files with 16 additions and 0 deletions
@@ -15,6 +15,10 @@ on:
- cron: "0 */6 * * *"
workflow_dispatch:
concurrency:
group: upstream-sync-${{ github.repository }}
cancel-in-progress: true
jobs:
sync_latest_from_upstream:
name: Sync latest commits from upstream repo
+12
View File
@@ -2,10 +2,17 @@ name: Android TV APK
on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
paths:
- "android-tv/**"
- ".github/workflows/android-tv-apk.yml"
push:
branches:
- main
paths:
- "android-tv/**"
- ".github/workflows/android-tv-apk.yml"
@@ -27,8 +34,13 @@ on:
permissions:
contents: write
concurrency:
group: android-tv-apk-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build_android_tv_apk:
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
runs-on: ubuntu-latest
env:
KVIDEO_URL: ${{ github.event_name == 'workflow_dispatch' && inputs.kvideo_url || '' }}