summaryrefslogtreecommitdiffstats
path: root/.github/scripts
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2022-07-12 15:35:37 +0300
committerGitHub <noreply@github.com>2022-07-12 08:35:37 -0400
commit06dd92a14219fd3aeea477ff12f40f0e928beab4 (patch)
treed8a69b59ef4274f04e4d79bff793e9f06213819f /.github/scripts
parent2679cfdd00cf6e43f72353f88d097fef5df654ff (diff)
Actually allow running a test release in a fork of the repo. (#13331)
This adds a way to manually bypass the check that explicitly keeps the release code from running if run in a repo other than netdata/netdata. This is done by setting `NETDATA_RELEASE_TEST` to a non-empty value in the repository secrets.
Diffstat (limited to '.github/scripts')
-rwxr-xr-x.github/scripts/prepare-release-base.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/scripts/prepare-release-base.sh b/.github/scripts/prepare-release-base.sh
index a4f56da682..7c24f6b66e 100755
--- a/.github/scripts/prepare-release-base.sh
+++ b/.github/scripts/prepare-release-base.sh
@@ -6,6 +6,7 @@ REPO="${1}"
EVENT_NAME="${2}"
EVENT_TYPE="${3}"
EVENT_VERSION="${4}"
+RELEASE_TEST="${5}"
##############################################################
# Version validation functions
@@ -94,7 +95,7 @@ check_newer_patch_version() {
git config user.name "netdatabot"
git config user.email "bot@netdata.cloud"
-if [ "${REPO}" != "netdata/netdata" ]; then
+if [ "${REPO}" != "netdata/netdata" ] && [ -z "${RELEASE_TEST}" ]; then
echo "::notice::Not running in the netdata/netdata repository, not queueing a release build."
echo "::set-output name=run::false"
elif [ "${EVENT_NAME}" = 'schedule' ] || [ "${EVENT_TYPE}" = 'nightly' ]; then