From 47dbcad3a7c598fbb307f8bc386b60f055d37e4c Mon Sep 17 00:00:00 2001 From: bbhtt Date: Tue, 13 May 2025 10:53:19 +0530 Subject: [PATCH] fedc: Support commit-only arg through flathub.json Fixes https://github.com/flathub-infra/flatpak-external-data-checker/issues/163 --- .github/actions/flatpak-external-data-checker/entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/flatpak-external-data-checker/entrypoint.sh b/.github/actions/flatpak-external-data-checker/entrypoint.sh index 9563a46..125c089 100755 --- a/.github/actions/flatpak-external-data-checker/entrypoint.sh +++ b/.github/actions/flatpak-external-data-checker/entrypoint.sh @@ -32,6 +32,10 @@ for repo in "${checker_apps[@]}"; do if jq -e '."require-important-update"' < "$repo"/flathub.json > /dev/null; then FEDC_OPTS+=("--require-important-update") fi + # disable sending PRs and only commit + if jq -e '."fedc-commit-only" == true' < "$repo"/flathub.json > /dev/null; then + FEDC_OPTS+=("--commit-only") + fi fi if [[ -f $repo/${repo}.yml ]]; then