Skip to content

Conversation

@dscho
Copy link
Member

@dscho dscho commented Sep 16, 2025

In #1866 I introduced logic to skip builds and tests when a previous workflow run already succeeded for the same commit.

However, the original revision of that Pull Request tried something even more elaborate, and when I dropped that elaborate logic (because it is a bit fragile), I made a mistake in the replacement logic.

The run.status can never be success, it can be completed and run.conclusion can be success. So let's test for that instead ;-)

In #1866 I introduced logic
to skip builds and tests when a previous workflow run already succeeded
for the same commit.

However, the original revision of that Pull Request tried something
_even more_ elaborate, and when I dropped that elaborate logic (because
it is a bit fragile), I made a mistake in the replacement logic.

The `run.status` can never be `success`, it can be `completed` and
_`run.conclusion`_ can be `success`. So let's test for that instead ;-)

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho dscho requested a review from mjcheetham September 16, 2025 11:05
@dscho dscho enabled auto-merge September 16, 2025 11:05
@dscho dscho merged commit 00ddd95 into master Sep 16, 2025
12 checks passed
@dscho dscho deleted the fix-for-pr-1866 branch September 16, 2025 12:49
@mjcheetham mjcheetham mentioned this pull request Sep 18, 2025
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.

3 participants