CI: add option not rebuild federal initiatives

This commit is contained in:
2026-06-17 22:13:16 +02:00
parent 9ca5b80d7a
commit 1ab4b93bcc
+7 -1
View File
@@ -21,6 +21,11 @@ on:
required: false
default: "false"
type: boolean
ignoreFederalPopularInitiativesFeed:
description: "skip federal initiatives feed generation"
required: false
default: "false"
type: boolean
jobs:
build:
@@ -59,6 +64,7 @@ jobs:
- name: Generate feeds for federal popular initiatives
run: |
if ! [ "${{ github.event_name }}" = "workflow_dispatch" ] && [ "${{ inputs.ignoreFederalPopularInitiativesFeed }}" = "true"]; then
if [ "${{ github.event_name }}" = "workflow_dispatch" ] && [ "${{ inputs.verbose }}" = "true" ]; then
echo "Running in VERBOSE mode"
resspublica --verbose --gen_federalInitiatives
@@ -72,7 +78,7 @@ jobs:
exit 0
fi
git commit -m "feeds: federal popular initiatives update $(date -u +%Y-%m-%d)"
fi
- name: Generate feeds for asian hornets sighting in Bern
run: |
if [ "${{ github.event_name }}" = "workflow_dispatch" ] && [ "${{ inputs.verbose }}" = "true" ]; then