Skip to content

Commit 97e199b

Browse files
committed
Fix invalid YAML formatting in Dependabot workflow template
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent 4b1aa9a commit 97e199b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ But you might still need to adapt your code:
3939
### Cookiecutter template
4040

4141
- mkdocstrings: Move `paths` key to the right section in `mkdocs.yml`.
42+
- Migration script: Fix invalid YAML syntax in Dependabot workflow template.

cookiecutter/migrate.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ def create_dependabot_auto_merge_workflow() -> None:
4848
workflow_dir = Path(".github") / "workflows"
4949
workflow_dir.mkdir(parents=True, exist_ok=True)
5050

51-
workflow_content = """name: Auto-merge Dependabot PR
51+
workflow_content = """\
52+
name: Auto-merge Dependabot PR
5253
5354
on:
5455
pull_request:
@@ -63,16 +64,14 @@ def create_dependabot_auto_merge_workflow() -> None:
6364
runs-on: ubuntu-latest
6465
steps:
6566
- name: Auto-merge Dependabot PR
66-
uses: >-
67-
frequenz-floss/dependabot-auto-approve@3cad5f42e79296505473325ac6636be897c8b8a1
68-
67+
uses: frequenz-floss/dependabot-auto-approve@3cad5f42e79296505473325ac6636be897c8b8a1 # v1.3.2
6968
with:
7069
github-token: ${{ secrets.GITHUB_TOKEN }}
7170
dependency-type: 'all'
7271
auto-merge: 'true'
7372
merge-method: 'merge'
7473
add-label: 'tool:auto-merged'
75-
"""
74+
""" # noqa: E501
7675

7776
workflow_file = workflow_dir / "auto-dependabot.yaml"
7877
workflow_file.write_text(workflow_content, encoding="utf-8")

0 commit comments

Comments
 (0)