From 2395239f0bd6a0313aff6b901166c5531fa635b0 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 27 May 2026 18:16:38 +0200 Subject: [PATCH] fix(ci): generate config.yml.sample in release-os-package for vikunja vikunja's nfpm.yaml packs ./config.yml.sample as /etc/vikunja/config.yml. The release-binaries action already regenerates it for the zip bundles, but release-os-package runs on a fresh runner without that file, so nfpm aborted with "matching ./config.yml.sample: file does not exist" on every vikunja os-package matrix shard (the veans shards skip this step entirely). Add a vikunja-only step to regenerate it before nfpm runs. --- .github/actions/release-os-package/action.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/actions/release-os-package/action.yml b/.github/actions/release-os-package/action.yml index ad71b5354..8203babcc 100644 --- a/.github/actions/release-os-package/action.yml +++ b/.github/actions/release-os-package/action.yml @@ -104,6 +104,16 @@ runs: shell: bash run: go install github.com/magefile/mage@v1.17.2 + - name: Generate config.yml.sample (vikunja only) + # vikunja's nfpm.yaml ships ./config.yml.sample as /etc/vikunja/config.yml. + # release-binaries generates it for the zip bundles, but this job runs on a + # fresh runner, so we regenerate it here before nfpm packs it. + if: inputs.project == 'vikunja' + shell: bash + run: | + export PATH=$PATH:$GOPATH/bin + mage generate:config-yaml 1 + - name: Write GPG key for nfpm if: inputs.packager == 'rpm' shell: bash