diff --git a/action.yml b/action.yml index 68d21c4..b4ce0a3 100644 --- a/action.yml +++ b/action.yml @@ -252,14 +252,8 @@ runs: sudo cp -Rp ${{ github.workspace }} ${{ steps.mount_image.outputs.mount }}${repository_path} ;; esac - sudo cp -Rp ${{ inputs.extra_files_path }} ${{ steps.mount_image.outputs.mount }}${inputs.extra_files_mnt_path} - # if [ -n "${{ inputs.non_image_commands }}" ]; then - # script_path=${script_dir}/non_image_commands.sh - # mkdir -p ${script_dir} - # cat >> ${script_path} <<"INPUT_COMMANDS_EOF" - # ${{ inputs.non_image_commands }} - INPUT_COMMANDS_EOF - /bin/sh $script_path + if [ -n "${{ inputs.extra_files_path }}" ]; then + sudo cp -Rp ${{ inputs.extra_files_path }} ${{ steps.mount_image.outputs.mount }}${inputs.extra_files_mnt_path} fi if [ "${{ inputs.use_systemd_nspawn }}x" != "x" -a "${{ inputs.use_systemd_nspawn }}x" != "nox" ]; then chroot_script_dir=/scripts