Skip to content

Commit 3948094

Browse files
Update optic.yml
1 parent 7b09f75 commit 3948094

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

.github/workflows/optic.yml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
11
name: optic
22
on:
3+
pull_request:
34
push:
45
branches:
5-
- main
6-
pull_request:
7-
6+
- "main"
7+
88
jobs:
9-
diff-all:
9+
run:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
1313
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

0 commit comments

Comments
 (0)