File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7272 - name : Build packages
7373 run : |
7474 python -m tools.packaging_automation.citus_package \
75- --gh_token "${{ steps.app.outputs.token } }" \
75+ --gh_token "${GH_TOKEN }" \
7676 --platform "${{ matrix.platform }}" \
7777 --build_type "nightly" \
7878 --secret_key "${PACKAGING_SECRET_KEY}" \
Original file line number Diff line number Diff line change @@ -401,7 +401,6 @@ def build_packages(
401401 input_output_parameters : InputOutputParameters ,
402402 is_test : bool = False ,
403403) -> None :
404- os .environ ["GH_TOKEN" ] = github_token
405404 os_name , os_version = decode_os_and_release (platform )
406405 release_versions , nightly_versions = get_postgres_versions (
407406 platform , input_output_parameters .input_files_dir
Original file line number Diff line number Diff line change 6060
6161TEST_GPG_KEY_NAME = "Citus Data <packaging@citusdata.com>"
6262TEST_GPG_KEY_PASSPHRASE = os .getenv ("PACKAGING_PASSPHRASE" )
63- GH_TOKEN = os .environ ("GH_TOKEN" )
63+ GH_TOKEN = os .getenv ("GH_TOKEN" )
64+ if not GH_TOKEN :
65+ raise ValueError ("GH_TOKEN environment variable is required for tests to run" )
6466PACKAGE_CLOUD_API_TOKEN = os .getenv ("PACKAGE_CLOUD_API_TOKEN" )
6567REPO_CLIENT_SECRET = os .getenv ("REPO_CLIENT_SECRET" )
6668PLATFORM = get_build_platform (
You can’t perform that action at this time.
0 commit comments