~edwargix/git.sr.ht

793612d25d278b407f64afe65e120adbd0edfdea — Drew DeVault 6 years ago 5daef2d
Fix .build.yml-style repos

Whoops
1 files changed, 2 insertions(+), 2 deletions(-)

M gitsrht/worker.py
M gitsrht/worker.py => gitsrht/worker.py +2 -2
@@ 43,7 43,7 @@ def submit_builds(repo, git_repo, commit):
    if ".build.yml" in commit.tree:
        build_yml = commit.tree[".build.yml"]
        if build_yml.type == 'blob':
            manifests[None] = build_yml
            manifests[".build.yml"] = build_yml
    elif ".builds"  in commit.tree:
        build_dir = commit.tree[".builds"]
        if build_dir.type == 'tree':


@@ 90,7 90,7 @@ def submit_builds(repo, git_repo, commit):
            print("Failed to submit build job" + (" " + name) if name else "")
            return
        build_id = resp.json().get("id")
        if name is not None:
        if name != ".build.yml":
            print("Build started: https://builds.sr.ht/~{}/job/{} [{}]".format(
                repo.owner.username, build_id, name))
        else: