Skip to content

Commit b23b504

Browse files
authored
Support sys upgrades
Signed-off-by: Damian Perera <15967502+damianperera@users.noreply.github.com>
1 parent cd0848c commit b23b504

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/build.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
pwd=$(pwd)
2626
cd wulfy/builds
2727
cd "$(ls -t1 -d rpi-4_*/ | head -n1)"
28-
gunzip -v *fac.img.gz || echo Extraction completed with warnings
29-
baseFileName=$(ls *fac.img)
30-
mv *fac.img $pwd/rpi.img
28+
gunzip -v *{fac,sys}.img.gz || echo Extraction completed with warnings
29+
baseFileName=$(ls *{fac,sys}.img 2>/dev/null | head -n1)
30+
mv *{fac,sys}.img $pwd/rpi.img
3131
cd $pwd
3232
echo "imagePath=${pwd}/rpi.img" >> $GITHUB_ENV
3333
echo "baseFileName=$baseFileName" >> $GITHUB_ENV
@@ -58,6 +58,7 @@ jobs:
5858
baseFileName=${{ env.baseFileName }}
5959
echo "**release type:** \`$GITHUB_EVENT_NAME\`" > CHANGELOG.txt
6060
echo "**base:** \`${baseFileName%.img}\`" >> CHANGELOG.txt
61+
[[ "${baseFileName}" == *fac* ]] && echo "**type:** `factory`" >> CHANGELOG.txt || [[ "${baseFileName}" == *sys* ]] && echo "**type:** `sysupgrade`" >> CHANGELOG.txt
6162
echo "**[wulfy/rpi4](https://github.com/wulfy23/rpi4) changes:** \`$latestUpstreamRepoCommit\` on commit [$latestUpstreamRepoCommitId](https://github.com/wulfy23/rpi4/commit/$latestUpstreamRepoCommitId)" >> CHANGELOG.txt
6263
echo "**[damianperera/openwrt-rpi](https://github.com/damianperera/openwrt-rpi) changes:** \`$latestDownstreamRepoCommit\` on commit [$latestDownstreamRepoCommitId](https://github.com/damianperera/openwrt-rpi/commit/$latestDownstreamRepoCommitId)" >> CHANGELOG.txt
6364
[[ -z "${{ github.event.inputs.releaseNotes }}" ]] && echo No custom release notes || echo "### Release Notes" >> CHANGELOG.txt && echo ${{ github.event.inputs.releaseNotes }} >> CHANGELOG.txt

0 commit comments

Comments
 (0)