File tree 1 file changed +4
-25
lines changed
1 file changed +4
-25
lines changed Original file line number Diff line number Diff line change @@ -8,37 +8,16 @@ name: Tests
8
8
- reopened
9
9
10
10
jobs :
11
- prepare-commit-msg :
12
- name : Retrieve head commit message
11
+ prevent-run-twice :
12
+ name : Prevent to run twice
13
13
runs-on : ubuntu-latest
14
14
# Run 'pull-request' event only on external PRs from forked repos.
15
15
if : github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
16
- outputs :
17
- HEAD_COMMIT_MSG : ' ${{ steps.commitMsg.outputs.HEAD_COMMIT_MSG }}'
18
16
steps :
19
- - uses : actions/checkout@v2
20
- if : github.event_name == 'pull_request'
21
- - name : find commit msg for PR
22
- id : commitMsg
23
- if : github.event_name == 'pull_request'
24
- run : >-
25
- echo "::set-output name=HEAD_COMMIT_MSG::$(git log --no-merges -1
26
- --oneline)"
27
-
28
- check-skip :
29
- name : Check to skip CI
30
- needs : prepare-commit-msg
31
- runs-on : ubuntu-latest
32
- if : >-
33
- ${{ !contains(github.event.head_commit.message, '[ci skip]') &&
34
- !contains(needs.prepare-commit-msg.outputs.HEAD_COMMIT_MSG, '[ci skip]')
35
- }}
36
- steps :
37
- - run : ' echo "${{ github.event.head_commit.message }}"'
38
-
17
+ - run : ' echo run Tests'
39
18
smoke :
40
19
name : ' Smoke [Node.js v${{ matrix.node }} / ${{ matrix.os }}]'
41
- needs : check-skip
20
+ needs : prevent-run-twice
42
21
runs-on : ' ${{ matrix.os }}'
43
22
strategy :
44
23
matrix :
You can’t perform that action at this time.
0 commit comments