Skip to content

Commit b9d635e

Browse files
committed
Fix indentation for GH actions in boilerplate
1 parent 17032c7 commit b9d635e

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

scripts/boilerplate.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,19 @@ def _SetupGithubActions():
103103
f"""
104104
name: Build and test library
105105
106+
permissions:
107+
contents: read
108+
106109
on:
107-
push:
110+
push:
108111
branches: [main]
109-
pull_request:
112+
pull_request:
110113
branches: [main]
111114
types: [opened, synchronize]
112-
workflow_dispatch:
115+
workflow_dispatch:
113116
114117
jobs:
115-
build:
118+
build:
116119
name: Build and test library
117120
uses: {GITHUB_ORG}/.github/.github/workflows/library.yml@latest
118121
""",
@@ -125,15 +128,15 @@ def _SetupGithubActions():
125128
name: Prepare GH release
126129
127130
on:
128-
push:
131+
push:
129132
tags: [ '*.*.*-*' ]
130133
131134
jobs:
132-
release:
135+
release:
133136
name: Prepare GitHub release
134137
uses: {GITHUB_ORG}/.github/.github/workflows/release.yml@latest
135138
permissions:
136-
contents: write
139+
contents: write
137140
""",
138141
)
139142

0 commit comments

Comments
 (0)