Skip to content

Conversation

@sh41
Copy link

@sh41 sh41 commented Nov 4, 2025

Hey, thanks for creating and maintaining this project! It has the potential to reduce our GitHub Action minutes usage by a lot.

We use a lot of reusable workflows, and after I saw #327 I understood that this action couldn't see duplicates if they were triggered by different parent workflows. I've added a reusable_workflow_filepath input that lets you tell the action to look at the history of a specific reusable workflow. This allows it to find successful duplicates no matter where they were called from.

Due to limitations in the GH API, there isn't any scope for getting info about the specifics of the reusable workflow's run only it's calling run, so this should only be used on reusable workflows that are never skipped for other reasons.

Also, mainly for testing purposes, but possibly useful in other scenarios, I've added an include_previous_attempts_of_same_run input. At the moment the action will ignore all previous attempts of the current workflow. With this option enabled, the action will look at the previous attempts for the same run and can skip the new one if an earlier attempt already succeeded.

I also added a couple of new test workflows (caller-workflow-for-testing.yml and reusable-workflow-for-testing.yml) to make sure these new features work as expected. The test is to let the caller workflow run successfully, then manually re-run it, which should skip the second step of the reusable workflow.

Thanks again for all your work on this. Let me know what you think 👍

Fixes #327

@sh41 sh41 marked this pull request as draft November 4, 2025 00:23
@sh41 sh41 closed this Nov 4, 2025
@sh41 sh41 changed the title test re-usable skip ## AI Assistant ## AI Assistant feat: Add support for reusable workflows and previous run attempts Nov 4, 2025
@sh41 sh41 reopened this Nov 4, 2025
@sh41 sh41 marked this pull request as ready for review November 4, 2025 00:36
@sh41 sh41 changed the title ## AI Assistant ## AI Assistant feat: Add support for reusable workflows and previous run attempts feat: Add support for reusable workflows and previous run attempts Nov 4, 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.

reusable workflow should be skipped

1 participant