Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: avoid unnecessary steps in release-please workflow #10

Merged
merged 1 commit into from
May 8, 2024

Conversation

mdjermanovic
Copy link
Member

Fixes #8

In GitHub actions, steps' output properties always have string values.

Per https://github.com/google-github-actions/release-please-action/issues/912 and https://github.com/google-github-actions/release-please-action/pull/915, a breaking change in release-please-action@v4 is that when there are no releases created, instead of omitting releases_created property it sets it to a truthy string "false".

This PR updates the condition if: ${{ steps.release.outputs.releases_created }} to if: ${{ steps.release.outputs.releases_created == 'true' }} to avoid running unnecessary steps when there are no releases created.

@aladdin-add
Copy link
Member

there is a conflict now.

Copy link
Member

@aladdin-add aladdin-add left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@aladdin-add aladdin-add merged commit 82fd8db into main May 8, 2024
9 checks passed
@aladdin-add aladdin-add deleted the issue8-1 branch May 8, 2024 09:34
@aladdin-add
Copy link
Member

working as expected: https://github.com/eslint/rewrite/actions/runs/8999594116/job/24722063884

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: release-please workflow runs release steps after merging a non-release PR
2 participants