Pass environment as input to shared triage workflow

The `environment` property cannot be set at the job level when using
`uses:` to call a reusable workflow. Pass it as a workflow input instead.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Kynan Ware 2026-02-17 07:27:01 -07:00
parent b77057d825
commit e861681139

View file

@ -14,10 +14,10 @@ on:
jobs:
discuss:
if: github.event.action == 'labeled' && github.event.label.name == 'discuss'
environment: cli-discuss-automation
uses: desktop/gh-cli-and-desktop-shared-workflows/.github/workflows/triage-discuss.yml@main
with:
target_repo: 'github/cli'
cc_team: '@github/cli'
environment: cli-discuss-automation
secrets:
discussion_token: ${{ secrets.CLI_DISCUSSION_TRIAGE_TOKEN }}