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

Add check for workflow already running with matching commit #9

Open
jon-nfc opened this issue Aug 10, 2024 · 0 comments
Open

Add check for workflow already running with matching commit #9

jon-nfc opened this issue Aug 10, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jon-nfc
Copy link
Member

jon-nfc commented Aug 10, 2024

As this workflow can potentially overwrite the same actions if two workflows are running, i.e. push and tag. a check needs to be done to find the first workflow so that no additional rebuilding is done.

The check should cause the newest workflow to pause if the commit is the same and to wait for the first one to complete.

Details

A query to the API could be done and if the branch is regex match a tag and the current running job is on the same commit, then stop. this will then prevent an overwrite of build items that are not tagged.

So that the status of the branch job is not that of "reported" true/false. wait for the tagged job to finish and report it's status as the the same as the tagged job's run status.

Workflow

Links

@jon-nfc jon-nfc added the enhancement New feature or request label Aug 10, 2024
@jon-nfc jon-nfc changed the title Add check for workflow already running Add check for workflow already running with matching commit Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant