Early out of flake update if there are no changes (#192)

This commit is contained in:
Patrick Stevens
2024-07-12 17:46:04 +01:00
committed by GitHub
parent ebbe10ad81
commit b7a240bbb9
2 changed files with 3 additions and 0 deletions

View File

@@ -122,6 +122,8 @@ def create_pull_request(title: str, branch_name: str, base_branch: str) -> tuple
def main():
changed_files = get_git_diff()
if not changed_files:
return
# Create blobs and prepare tree changes
tree_changes = []

View File

@@ -52,6 +52,7 @@ jobs:
run: /tmp/venv/bin/python .github/workflows/commit.py
- name: Enable Pull Request Automerge
if: ${{ steps.cpr.outputs.pull-request-number }}
uses: peter-evans/enable-pull-request-automerge@v3
with:
token: ${{ steps.generate-token.outputs.token }}