Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/package-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ name: Package preview
on:
pull_request:
workflow_call:
workflow_dispatch:

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Isolate manual runs from the release preview group

When this recovery dispatch targets main while release.yml's reusable preview job is queued or running, both executions use package-preview-refs/heads/main; with cancel-in-progress: true, the manual run cancels the preview job embedded in the release workflow. Because the release job has needs: preview, the independent dispatch cannot satisfy that dependency, so Version Packages maintenance and qualification are skipped and the release run completes red. Give manual dispatches a distinct concurrency key, or otherwise avoid canceling the workflow_call invocation.

AGENTS.md reference: AGENTS.md:L155-L160

Useful? React with 👍 / 👎.

inputs:
ephemeral-linux:
description: Use the isolated one-job Linux publisher
type: boolean
default: false

permissions: {}

Expand All @@ -17,7 +23,7 @@ concurrency:
jobs:
publish:
name: Publish pkg.pr.new preview
runs-on: windows-latest
runs-on: ${{ github.event_name == 'workflow_dispatch' && inputs.ephemeral-linux && fromJSON('["self-hosted", "Linux", "X64", "agent-bundle-publish"]') || 'windows-latest' }}
steps:
- uses: actions/checkout@v7
- uses: ./.github/actions/setup-workspace
Expand Down
Loading