File tree Expand file tree Collapse file tree 2 files changed +7
-19
lines changed Expand file tree Collapse file tree 2 files changed +7
-19
lines changed Original file line number Diff line number Diff line change 1
1
name : Lint commits
2
- on :
3
- workflow_call :
4
- inputs :
5
- config-file :
6
- description : " TODO"
7
- type : string
8
- default : ' .github/ci.el'
9
-
2
+ on : [workflow_call]
10
3
jobs :
11
4
lint-commits :
12
5
timeout-minutes : 10
@@ -18,12 +11,11 @@ jobs:
18
11
- name : Set up Doom Emacs CI
19
12
uses : doomemacs/ci@legacy
20
13
21
- - name : Checkout current project
22
-
14
+
23
15
with.fetch-depth : 0
24
16
25
17
- name : Run commit linter
26
- env.ELFILE : ${{ inputs.config-file }}
27
- run : |
28
- [[ -f "$ELFILE" ]] || ELFILE=
29
- doom ${ELFILE:+-l "$ELFILE"} ci lint-commits ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}
18
+ env :
19
+ FROM : ${{ github.event.pull_request.base.sha }}
20
+ TO : ${{ github.event.pull_request.head.sha }}
21
+ run : doom ci lint-commits $FROM $TO
Original file line number Diff line number Diff line change 6
6
description : " TODO"
7
7
type : string
8
8
default : " test"
9
- config-file :
10
- description : " TODO"
11
- type : string
12
- default : ' .github/ci.el'
13
9
14
10
jobs :
15
11
run-tests :
22
18
23
19
- uses : doomemacs/ci@legacy
24
20
with.emacs-version : ${{ matrix.emacs-version }}
25
- - run : doom -f ${{ inputs.config-file }} ci run-tests ${{ inputs.testdir }}
21
+ - run : doom ci run-tests ${{ inputs.testdir }}
You can’t perform that action at this time.
0 commit comments