From: Josef Schlehofer Date: Sun, 25 May 2025 10:49:40 +0000 (+0200) Subject: CI: move script into separate directory X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=d1a60e81e9a7e61690c4c54f9ba92adc755ab135;p=feed%2Frouting.git CI: move script into separate directory This change follows the structure of GitHub workflow folders from the main OpenWrt repository, where scripts are in separate folder. Signed-off-by: Josef Schlehofer --- diff --git a/.github/workflows/ci_helpers.sh b/.github/workflows/ci_helpers.sh deleted file mode 100644 index 60dcd4e..0000000 --- a/.github/workflows/ci_helpers.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -color_out() { - printf "\e[0;$1m$PKG_NAME: %s\e[0;0m\n" "$2" -} - -success() { - color_out 32 "$1" -} - -info() { - color_out 36 "$1" -} - -err() { - color_out 31 "$1" -} - -warn() { - color_out 33 "$1" -} - -err_die() { - err "$1" - exit 1 -} diff --git a/.github/workflows/scripts/ci_helpers.sh b/.github/workflows/scripts/ci_helpers.sh new file mode 100644 index 0000000..60dcd4e --- /dev/null +++ b/.github/workflows/scripts/ci_helpers.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +color_out() { + printf "\e[0;$1m$PKG_NAME: %s\e[0;0m\n" "$2" +} + +success() { + color_out 32 "$1" +} + +info() { + color_out 36 "$1" +} + +err() { + color_out 31 "$1" +} + +warn() { + color_out 33 "$1" +} + +err_die() { + err "$1" + exit 1 +}