Skip to content

Commit

Permalink
Also build non RC kernels.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnny-mnemonic committed Feb 1, 2024
1 parent 374a11f commit aafb546
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,22 +31,29 @@ jobs:
JSON_DATA_FILE="$PWD/workflows.json"
touch ${JSON_DATA_FILE}
cd $REPO
# insert dummy element ###############################################
echo -n "[\"NO_BUILD\"" >> ${JSON_DATA_FILE}
# go through all configured branches and check for RCs ###############
for branch in $( cat config/rc-branches ); do
git worktree add ../${branch} ${branch}
pushd ../${branch}
pwd
if git log --oneline | head -n1 | grep "Linux\ .*\-rc.*" &>/dev/null; then
KERNEL_VERSION=$( git log --oneline | head -n1 | grep -o "Linux\ .*\-rc.*" )
if git log --oneline | head -n1 | grep "Linux\ .*" &>/dev/null; then
KERNEL_VERSION=$( git log --oneline | head -n1 | grep -o "Linux\ .*" )
echo "DEBUG build ${KERNEL_VERSION}"
echo "DEBUG , \"${branch}\""
echo -n ", \"${branch}\"" >> ${JSON_DATA_FILE}
if [[ -s ${JSON_DATA_FILE} ]]; then
echo "DEBUG , \"${branch}\""
echo -n ", \"${branch}\"" >> ${JSON_DATA_FILE}
else
echo "DEBUG [\"${branch}\""
echo -n "[\"${branch}\"" >> ${JSON_DATA_FILE}
fi
fi
popd
pwd
done
if [[ ! -s ${JSON_DATA_FILE} ]]; then
# insert dummy element #############################################
echo -n "[\"NO_BUILD\"" >> ${JSON_DATA_FILE}
fi
echo -n "]" >> ${JSON_DATA_FILE}
pwd
cat -v ${JSON_DATA_FILE} || echo "DEBUG #2"
Expand Down

0 comments on commit aafb546

Please sign in to comment.