Skip to content

Commit

Permalink
chore(dotnet): allow to customize env name for publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasbriere1 committed Nov 14, 2024
1 parent 908bf1a commit a80fef7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/dotnet-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit a80fef7

Please sign in to comment.