Open hvgazula opened 11 months ago
Edward, do you think can look into this?
Hello @hvgazula to make sure I understand this, do you want to delete the branch created in the repo if either singularity or docker fails?
as the title suggests...if the workflow fails..
Okay 👍Would you agree to perform this on the already existing 'failed' job?
before that I want you to look at my workflow and tell what can fail...if it has any loopholes that I did not address but you did in yours.
Sure, I am creating comments on your PR
Hello @hvgazula, deleting the branch if fails is implemented: https://github.com/neuronets/trained-models/blob/hvgazula/issue104/.github/workflows/new_model.yml#L334
I tested it out and it worked.
Currently, the issue branch is retained in the remote repo and, (ideally) we want this branch to be deleted if the testing workflow fails. However, the key stumbling block is moving deletion into a separate job. For more info, see https://github.com/neuronets/trained-models/issues/104#issuecomment-1806672486