Skip to content

Add check for workflow already running with matching commit #9

Description

@jon-nfc

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions