Skip to content

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

Open
baywet wants to merge 1 commit intomainfrom
ci/release-please-condition
Open

ci: skip release-please job when secret is not defined#530
baywet wants to merge 1 commit intomainfrom
ci/release-please-condition

Conversation

@baywet
Copy link
Copy Markdown
Member

@baywet baywet commented Apr 20, 2026

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:47
@baywet baywet enabled auto-merge (squash) April 20, 2026 11:47
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@baywet baywet force-pushed the ci/release-please-condition branch from ed3e4ae to 2728ef3 Compare April 20, 2026 11:59
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 20, 2026

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube Cloud

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.

1 participant