acta 0.1.0

Make Tracing Great Again.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python3
"""Check if git working tree has changes, write result to GITHUB_OUTPUT."""

from common import run_ok, gh_output


def main():
    result = run_ok(["git", "diff", "--quiet"])
    has_changes = "false" if result.returncode == 0 else "true"
    gh_output("has_changes", has_changes)
    print(f"has_changes={has_changes}")


if __name__ == "__main__":
    main()