From a80fef7c1579434658d0fd4e1e0295969a8e95ea Mon Sep 17 00:00:00 2001 From: Nicolas BRIERE Date: Thu, 14 Nov 2024 09:10:36 +0100 Subject: [PATCH] chore(dotnet): allow to customize env name for publish workflow --- .github/workflows/dotnet-publish.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet-publish.yml b/.github/workflows/dotnet-publish.yml index 81ab6a0..b13f362 100644 --- a/.github/workflows/dotnet-publish.yml +++ b/.github/workflows/dotnet-publish.yml @@ -16,14 +16,18 @@ on: type: boolean description: "Whether to publish to the public registry" default: true - + environment_name: + required: false + type: string + description: "The environment name to use" + default: main jobs: publish: runs-on: ubuntu-latest permissions: id-token: write packages: read - environment: main + environment: ${{ inputs.environment_name }} env: VAULT_URL: ${{ vars.VAULT_URL }} VAULT_GITHUB_ACTIONS_ROLE: ${{ vars.VAULT_GITHUB_ACTIONS_ROLE }}