Skip to content

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

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

baywet merged 1 commit into
mainfrom
ci/release-please-condition

Conversation

@baywet

@baywet baywet commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

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.

@baywet
baywet requested a review from a team as a code owner April 20, 2026 11:49
@baywet
baywet enabled auto-merge (squash) April 20, 2026 11:49
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@baywet
baywet force-pushed the ci/release-please-condition branch from 3308aea to 107ea65 Compare April 20, 2026 12:00
@baywet
baywet merged commit 49732b6 into main Apr 20, 2026
3 checks passed
@baywet
baywet deleted the ci/release-please-condition branch April 20, 2026 13:13
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