-
Notifications
You must be signed in to change notification settings - Fork 0
Description
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
-
Wait
xperiod of time -
query endpoint using commit sha
-
workflow found with same commit and workflow job
CI-
current workflow not
git tag-
Found workflow that is git tag
-
post markdown status to workflow pointing to tagged branch
action: dtinth/markdown-report-action
-
stop workflow from continuing
-
-
-
Current workflow is
git tag- continue workflow
-