diff options
author | Austin S. Hemmelgarn <austin@netdata.cloud> | 2022-07-12 15:35:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-12 08:35:37 -0400 |
commit | 06dd92a14219fd3aeea477ff12f40f0e928beab4 (patch) | |
tree | d8a69b59ef4274f04e4d79bff793e9f06213819f /.github/scripts | |
parent | 2679cfdd00cf6e43f72353f88d097fef5df654ff (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.sh | 3 |
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 |