Skip to content

Commit c0cd42c

Browse files
committed
check indentation is tabs
1 parent bed0afd commit c0cd42c

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,3 +278,20 @@ jobs:
278278
- run: brew install gum
279279
- run: ./install.sh --yes
280280
- run: .github/smoke-test.sh
281+
282+
check-indentation:
283+
runs-on: ubuntu-latest
284+
steps:
285+
- uses: actions/checkout@v3
286+
- uses: actions/setup-python@v4
287+
with:
288+
python-version: '3.x'
289+
- uses: jannekem/run-python-script-action@v1
290+
with:
291+
script: |
292+
import sys
293+
with open('install.sh') as f:
294+
for line_number, line in enumerate(f, start=1):
295+
if line.startswith(' '):
296+
print(f'Error: Space indentation found on line {line_number}')
297+
sys.exit(1)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* [`install.sh`](./install.sh) is delivered when you `curl tea.xyz`.
44
* This repository also provides the `tea` GitHub Action.
55

6-
# GitHub Action 0.16.2
6+
# GitHub Action 0.17.0
77

88
```yaml
99
- uses: teaxyz/setup@v0

0 commit comments

Comments
 (0)