Skip to content

Add allowed-base-branches: [main] to release notes workflow#3813

Merged
mattleibow merged 1 commit into
mainfrom
dev/automated-release-notes
Apr 29, 2026
Merged

Add allowed-base-branches: [main] to release notes workflow#3813
mattleibow merged 1 commit into
mainfrom
dev/automated-release-notes

Conversation

@mattleibow

Copy link
Copy Markdown
Contributor

This pull request updates the workflow configuration for generating release notes, focusing on tightening restrictions for pull request creation and making minor maintenance updates. The most significant change is the introduction of an allowed_base_branches (or allowed-base-branches) restriction, ensuring that documentation pull requests can only target the main branch. There are also corresponding updates to configuration blocks and metadata references.

Workflow restriction and configuration updates

  • Added allowed-base-branches: [main] to the create_pull_request step in .github/workflows/update-release-notes.md to restrict documentation pull requests to the main branch.
  • Updated the create_pull_request configuration in .github/workflows/update-release-notes.lock.yml to include "allowed_base_branches":["main"] in both the safe outputs handler and the safe outputs config JSON, enforcing the same restriction in the locked workflow. [1] [2]

Maintenance and metadata updates

  • Updated prompt and configuration block identifiers throughout .github/workflows/update-release-notes.lock.yml to reflect new content hashes and maintain consistency. [1] [2] [3] [4] [5]

These changes ensure that only documentation pull requests targeting the main branch are allowed, improving workflow safety and alignment with repository policies.

The safe-outputs policy rejected the PR because base branch override
to main wasn't explicitly allowed. Needed because the workflow triggers
on release/** branches but PRs should always target main.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mattleibow
mattleibow merged commit 60294b0 into main Apr 29, 2026
1 of 2 checks passed
@mattleibow
mattleibow deleted the dev/automated-release-notes branch April 29, 2026 23:32
@github-actions

Copy link
Copy Markdown
Contributor

📦 Try the packages from this PR

Warning

Do not run these scripts without first reviewing the code in this PR.

Step 1 — Download the packages

bash / macOS / Linux:

curl -fsSL https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.sh | bash -s -- 3813

PowerShell / Windows:

iex "& { $(irm https://raw.githubusercontent.com/mono/SkiaSharp/main/scripts/get-skiasharp-pr.ps1) } 3813"

Step 2 — Add the local NuGet source

dotnet nuget add source ~/.skiasharp/hives/pr-3813/packages --name skiasharp-pr-3813
More options
Option Description
--successful-only / -SuccessfulOnly Only use successful builds
--force / -Force Overwrite previously downloaded packages
--list / -List List available artifacts without downloading
--build-id ID / -BuildId ID Download from a specific build

Or download manually from Azure Pipelines — look for the nuget artifact on the build for this PR.

Remove the source when you're done:

dotnet nuget remove source skiasharp-pr-3813

github-actions Bot added a commit that referenced this pull request Apr 29, 2026
Add docs landing page improvement (#3794), note CI and workflow
automation improvements (#3755, #3787, #3802, #3805, #3808, #3811,
#3812, #3813), and expand highlights paragraph.

Community sample fixes by @ramezgerges (#3785, #3790) were already
present.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant