mirror of
https://github.com/armbian/scripts.git
synced 2026-01-06 10:32:48 -08:00
Update check-for-changes.yml
This commit is contained in:
8
.github/workflows/check-for-changes.yml
vendored
8
.github/workflows/check-for-changes.yml
vendored
@@ -48,7 +48,7 @@ jobs:
|
||||
BOOTCONFIG=true
|
||||
BETA=yes
|
||||
|
||||
MATRIX=$(for BRANCH in legacy current edge; do
|
||||
for BRANCH in legacy current edge; do
|
||||
FILES=$(cat build/config/targets*.conf | grep $BRANCH | grep -v "^$" | grep -v "^#" | sed -n $LINE'p' | cut -d " " -f1 | uniq)
|
||||
while IFS= read -r line; do
|
||||
unset LINUXFAMILY KERNELPATCHDIR LINUXCONFIG KERNELSOURCE KERNEL_VERSION_LEVEL
|
||||
@@ -78,8 +78,7 @@ jobs:
|
||||
#[[ -z ${KERNELPATCHDIR} ]] && KERNELPATCHDIR=$LINUXFAMILY-$BRANCH
|
||||
[[ -z ${LINUXCONFIG} ]] && LINUXCONFIG=linux-$LINUXFAMILY-$BRANCH
|
||||
[[ -z ${KERNELSOURCE} ]] && KERNELSOURCE="https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable"
|
||||
#hash_watch_1=$(LC_COLLATE=C find -L "build/patch/kernel/${KERNELPATCHDIR}"/ -type f \( -iname \*.patch -o -iname \series.* \) -mindepth 1 -maxdepth 1 -printf '%s %P\n' 2> /dev/null | LC_COLLATE=C sort -n)
|
||||
hash_watch_1=$(LC_COLLATE=C find -L "build/patch/kernel/${KERNELPATCHDIR}"/ -name '*.patch' -mindepth 1 -maxdepth 1 -printf '%s %P\n' 2> /dev/null | LC_COLLATE=C sort -n)
|
||||
hash_watch_1=$(LC_COLLATE=C find -L "build/patch/kernel/${KERNELPATCHDIR}"/ -type f \( -iname \*.patch -o -iname \series.* \) -mindepth 1 -maxdepth 1 -printf '%s %P\n' 2> /dev/null | LC_COLLATE=C sort -n)
|
||||
hash_watch_2=$(cat "build/config/kernel/${LINUXCONFIG}.config" 2> /dev/null)
|
||||
patch_hash=$(echo "${hash_watch_1}${hash_watch_2}" | git hash-object --stdin)
|
||||
case $ref_type in
|
||||
@@ -94,8 +93,7 @@ jobs:
|
||||
echo "${BOARDFAMILY}:${BRANCH}:${line}"
|
||||
fi
|
||||
done <<< "$FILES"
|
||||
done | sort | uniq | sort -u -t: -k1,2 )
|
||||
echo "${MATRIX}" |sed '/^$/d' > changes
|
||||
done | sort | uniq | sort -u -t: -k1,2
|
||||
|
||||
- name: Upload changes
|
||||
uses: actions/upload-artifact@v2
|
||||
|
||||
Reference in New Issue
Block a user