Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Cragun <[email protected]>
  • Loading branch information
ryancragun committed May 9, 2024
1 parent f8956bc commit b6416a8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,19 +210,17 @@ runs:
printf "packaging binary %s" "$fileo"
fi
mkdir -p ./out
package() {
local config_file
config_file="nfpm_"$1"_config.yml"
config_file="nfpm_${1}_config.yml"
if ! INPUT_DEPENDS="$2" nfpm_template > "$config_file"; then
printf "failed to executing nfpm_template for $1"
exit 1
fi
cat "$config_file"
mkdir -p ./out
if ! nfpm package -f "$config_file" -p ${1} -t ./out/; then
printf "failed to create package with nfpm for $1 using config $(cat $config_file)\n"
exit 1
fi
nfpm package -f "$config_file" -p ${1} -t ./out/
}
package rpm "${{ inputs.rpm_depends }}"
Expand Down

0 comments on commit b6416a8

Please sign in to comment.