-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
58 lines (48 loc) · 1.03 KB
/
Taskfile.yml
File metadata and controls
58 lines (48 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
version: '3'
tasks:
# General tasks
setup:
desc: "Setup tools"
cmds:
- mise trust
- mise install
check:
desc: "Check"
cmds:
- task: yml:lint
- task: md:check
tag:*:
desc: "Create a new tag"
vars:
VERSION: "{{index .MATCH 0}}"
cmds:
- git tag -a -m "Release v{{.VERSION}}" v{{.VERSION}}
- git push --follow-tags
# YAML tasks
yml:lint:
desc: "Lint YAMLs"
cmds:
- task: yml:lint:action
- task: yml:lint:self
yml:lint:action:
desc: "Lint action as YAML"
cmd: yamllint action.yml
yml:lint:self:
desc: "Lint this file as YAML"
cmd: yamllint Taskfile.yml
# Markdown tasks
md:check:
desc: "Check Markdown"
cmds:
- task: md:fix
- task: md:lint
md:fix:
desc: "Auto fix Markdown"
cmds:
- task: md:lint-fix
md:lint:
desc: "Run markdownlint on project markdown files"
cmd: markdownlint *.md
md:lint-fix:
desc: "Fix markdownlint issues automatically"
cmd: markdownlint *.md --fix