File tree Expand file tree Collapse file tree 1 file changed +13
-17
lines changed Expand file tree Collapse file tree 1 file changed +13
-17
lines changed Original file line number Diff line number Diff line change 1
1
name : optic
2
2
on :
3
+ pull_request :
3
4
push :
4
5
branches :
5
- - main
6
- pull_request :
7
-
6
+ - " main"
7
+
8
8
jobs :
9
- diff-all :
9
+ run :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- name : Checkout
13
13
uses : actions/checkout@v3
14
-
15
- - uses : opticdev/action@v1
16
- with :
17
- # Your Optic Cloud Token
18
- optic_token : ${{ secrets.OPTIC_TOKEN }}
19
-
20
- # A GitHub token with access to create comments on pull requests
21
- github_token : ${{ secrets.GITHUB_TOKEN }}
22
-
23
- # If true, standard check failures will cause this action to fail.
24
- # If false, standard check failures will show in PR comments and
25
- # in Optic Cloud but will not cause the action to fail
26
- standards_fail : true
14
+
15
+ - name : Install Optic
16
+ run : npm install --location global @useoptic/optic
17
+
18
+ - name : Run Optic
19
+ env :
20
+ OPTIC_TOKEN : ${{ secrets.OPTIC_TOKEN }}
21
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
22
+ run : optic run
You can’t perform that action at this time.
0 commit comments