Commit b23b504 1 parent cd0848c commit b23b504 Copy full SHA for b23b504
File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 25
25
pwd=$(pwd)
26
26
cd wulfy/builds
27
27
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
31
31
cd $pwd
32
32
echo "imagePath=${pwd}/rpi.img" >> $GITHUB_ENV
33
33
echo "baseFileName=$baseFileName" >> $GITHUB_ENV
58
58
baseFileName=${{ env.baseFileName }}
59
59
echo "**release type:** \`$GITHUB_EVENT_NAME\`" > CHANGELOG.txt
60
60
echo "**base:** \`${baseFileName%.img}\`" >> CHANGELOG.txt
61
+ [[ "${baseFileName}" == *fac* ]] && echo "**type:** `factory`" >> CHANGELOG.txt || [[ "${baseFileName}" == *sys* ]] && echo "**type:** `sysupgrade`" >> CHANGELOG.txt
61
62
echo "**[wulfy/rpi4](https://github.com/wulfy23/rpi4) changes:** \`$latestUpstreamRepoCommit\` on commit [$latestUpstreamRepoCommitId](https://github.com/wulfy23/rpi4/commit/$latestUpstreamRepoCommitId)" >> CHANGELOG.txt
62
63
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
63
64
[[ -z "${{ github.event.inputs.releaseNotes }}" ]] && echo No custom release notes || echo "### Release Notes" >> CHANGELOG.txt && echo ${{ github.event.inputs.releaseNotes }} >> CHANGELOG.txt
You can’t perform that action at this time.
0 commit comments