@cryptotaxi247 / netdata-1 / commits / 06dd92a14

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.

Austin S. Hemmelgarn committed Jul 12, 2022 at 15:35 UTC 06dd92a14219fd3aeea477ff12f40f0e928beab4
2 files changed +4 -2
.github/scripts/prepare-release-base.sh
+2 -1
@@ -6,6 +6,7 @@ REPO="${1}"
6 EVENT_NAME="${2}"
7 EVENT_TYPE="${3}"
8 EVENT_VERSION="${4}"
9 +RELEASE_TEST="${5}"
10
11 ##############################################################
12 # Version validation functions
@@ -94,7 +95,7 @@ check_newer_patch_version() {
95 git config user.name "netdatabot"
96 git config user.email "bot@netdata.cloud"
97
97 -if [ "${REPO}" != "netdata/netdata" ]; then
98 +if [ "${REPO}" != "netdata/netdata" ] && [ -z "${RELEASE_TEST}" ]; then
99 echo "::notice::Not running in the netdata/netdata repository, not queueing a release build."
100 echo "::set-output name=run::false"
101 elif [ "${EVENT_NAME}" = 'schedule' ] || [ "${EVENT_TYPE}" = 'nightly' ]; then
.github/workflows/release.yml
+2 -1
@@ -41,7 +41,8 @@ jobs:
41 ${{ github.repository }} \
42 ${{ github.event_name }} \
43 ${{ github.event.inputs.type }} \
44 - ${{ github.event.inputs.version }}
44 + ${{ github.event.inputs.version }} \
45 + ${{ secrets.NETDATA_RELEASE_TEST }}
46 - name: Generate Nightly Changleog
47 id: nightly-changelog
48 if: steps.target.outputs.run == 'true' && steps.target.outputs.type == 'nightly'