From 684b0a5adbd4edf20177948a7b73713bc5b6f1a0 Mon Sep 17 00:00:00 2001 From: david22swan Date: Tue, 2 Sep 2025 12:10:31 +0100 Subject: [PATCH] (AT-2429) Configures service URL via workflow input Moves the service URL configuration to an input parameter for the `module_acceptance` workflow, enhancing flexibility. The service URL is now set as an environment variable using the provided input. This allows users to specify the target service URL when triggering the workflow. --- .github/workflows/module_acceptance.yml | 6 ++++++ .github/workflows/module_ci.yml | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/module_acceptance.yml b/.github/workflows/module_acceptance.yml index 0e91f19..3ff132c 100644 --- a/.github/workflows/module_acceptance.yml +++ b/.github/workflows/module_acceptance.yml @@ -13,6 +13,11 @@ on: required: false default: '' type: "string" + service_url: + description: "The service URL to target when provisioning from GCP." + required: false + default: 'https://facade-release-6f3kfepqcq-ew.a.run.app/v1/provision' + type: "string" kernel_modules: description: "Volume map host kernel /lib/modules into docker container" default: true @@ -28,6 +33,7 @@ on: env: PUPPET_FORGE_TOKEN: ${{ secrets.PUPPET_FORGE_TOKEN || secrets.PUPPET_FORGE_TOKEN_PUBLIC }} BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM: "forge-key:${{ secrets.PUPPET_FORGE_TOKEN || secrets.PUPPET_FORGE_TOKEN_PUBLIC }}" + SERVICE_URL: ${{ inputs.service_url }} jobs: diff --git a/.github/workflows/module_ci.yml b/.github/workflows/module_ci.yml index 4859900..8db9f28 100644 --- a/.github/workflows/module_ci.yml +++ b/.github/workflows/module_ci.yml @@ -14,11 +14,6 @@ on: required: false default: '' type: "string" - service_url: - description: "The service URL to target when provisioning from GCP." - required: false - default: 'https://facade-release-6f3kfepqcq-ew.a.run.app/v1/provision' - type: "string" run_shellcheck: description: "Run shellcheck on all bash files" required: false @@ -36,7 +31,6 @@ on: env: PUPPET_FORGE_TOKEN: ${{ secrets.PUPPET_FORGE_TOKEN || secrets.PUPPET_FORGE_TOKEN_PUBLIC }} BUNDLE_RUBYGEMS___PUPPETCORE__PUPPET__COM: "forge-key:${{ secrets.PUPPET_FORGE_TOKEN || secrets.PUPPET_FORGE_TOKEN_PUBLIC }}" - SERVICE_URL: ${{ inputs.service_url }} jobs: setup_matrix: