File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 66 - master
77 release :
88 types :
9- - published
9+ - prereleased
10+ - released
1011
1112env :
1213 GH_REPO : ${{ github.repository }}
1314 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1415
1516 IS_RELEASE : ${{ github.event_name == 'release' }}
17+ IS_PRERELEASE : ${{ github.event.release.prerelease || false }}
1618
1719 BUILD_DEPS : " curl"
1820 BUILD_BOOTSTRAP : " https://raw.githubusercontent.com/webmin/webmin-ci-cd/main/build/bootstrap.bash"
5355 set -euo pipefail
5456
5557 # Bootstrap build
56- source bootstrap.bash $([[ "$IS_RELEASE" == "true" ]] || echo "--testing")
58+ source bootstrap.bash $([[ "$IS_RELEASE" == "true" ]] || echo "--testing") $([[ "$IS_PRERELEASE" == "true" ]] && echo "--prerelease")
59+ source bootstrap.bash \
60+ $([[ "$IS_RELEASE" != "true" ]] && echo "--testing") \
61+ $([[ "$IS_PRERELEASE" == "true" ]] && echo "--prerelease")
5762
5863 # Get package version
5964 pkg_version=$(get_remote_git_tag_version "$GH_REPO" "$GH_TOKEN" "$IS_RELEASE")
You can’t perform that action at this time.
0 commit comments