mirror of
https://github.com/Smaug123/WoofWare.Myriad
synced 2025-10-06 20:48:40 +00:00
Early out of flake update if there are no changes (#192)
This commit is contained in:
2
.github/workflows/commit.py
vendored
2
.github/workflows/commit.py
vendored
@@ -122,6 +122,8 @@ def create_pull_request(title: str, branch_name: str, base_branch: str) -> tuple
|
|||||||
|
|
||||||
def main():
|
def main():
|
||||||
changed_files = get_git_diff()
|
changed_files = get_git_diff()
|
||||||
|
if not changed_files:
|
||||||
|
return
|
||||||
|
|
||||||
# Create blobs and prepare tree changes
|
# Create blobs and prepare tree changes
|
||||||
tree_changes = []
|
tree_changes = []
|
||||||
|
1
.github/workflows/flake_update.yaml
vendored
1
.github/workflows/flake_update.yaml
vendored
@@ -52,6 +52,7 @@ jobs:
|
|||||||
run: /tmp/venv/bin/python .github/workflows/commit.py
|
run: /tmp/venv/bin/python .github/workflows/commit.py
|
||||||
|
|
||||||
- name: Enable Pull Request Automerge
|
- name: Enable Pull Request Automerge
|
||||||
|
if: ${{ steps.cpr.outputs.pull-request-number }}
|
||||||
uses: peter-evans/enable-pull-request-automerge@v3
|
uses: peter-evans/enable-pull-request-automerge@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ steps.generate-token.outputs.token }}
|
token: ${{ steps.generate-token.outputs.token }}
|
||||||
|
Reference in New Issue
Block a user