fix script path

This commit is contained in:
2025-06-21 13:20:32 +02:00
parent da32b2521b
commit 59a56f0898
2 changed files with 8 additions and 0 deletions

View File

@ -12,6 +12,12 @@ outputs:
runs:
using: "composite"
steps:
- name: "Print inputs"
shell: bash
run: "echo 'PKGBUILD_PATH: $PKGBUILD_PATH'; echo 'SRCINFO_PATH: $SRCINFO_PATH'"
env:
PKGBUILD_PATH: ${{ inputs.pkgbuild-path }}
SRCINFO_PATH: ${{ inputs.srcinfo-path }}
- name: "Make SRCINFO"
shell: bash
run: "$GITHUB_ACTION_PATH/mksrcinfo.sh $PKGBUILD_PATH > $SRCINFO_PATH"

View File

@ -8,7 +8,9 @@ section_array_fields=(arch groups license noextract options backup validpgpkeys
section_fields=("${section_scalar_fields[@]}" "${section_array_fields[@]}")
# load PKGBUILD
set -e
source "${1:-./PKGBUILD}"
set +e
# check if a variable is an array
is_array() {