Skip to content

ci: skip release-please job when secret is not defined - #2009

Merged
Vincent Biret (baywet) merged 1 commit into
mainfrom
ci/release-please-condition
Apr 20, 2026
Merged

ci: skip release-please job when secret is not defined#2009
Vincent Biret (baywet) merged 1 commit into
mainfrom
ci/release-please-condition

Conversation

@baywet

Copy link
Copy Markdown
Member

The release-please workflow fails in forks or environments where RELEASE_PLEASE_TOKEN_PROVIDER_PEM is not configured, erroring at the GitHub App token generation step.

Changes

Added an if condition to skip the release job when the secret is absent:

if: ${{ secrets.RELEASE_PLEASE_TOKEN_PROVIDER_PEM != '' }}

Mirrors the fix from kiota-authentication-oauth-ruby#49.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@baywet
Vincent Biret (baywet) merged commit 93513f5 into main Apr 20, 2026
16 checks passed
@baywet
Vincent Biret (baywet) deleted the ci/release-please-condition branch April 20, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants