Skip to content

Commit

Permalink
Update optic.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre-Herve authored Sep 22, 2023
1 parent 7b09f75 commit 3948094
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions .github/workflows/optic.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,22 @@
name: optic
on:
pull_request:
push:
branches:
- main
pull_request:

- "main"

jobs:
diff-all:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: opticdev/action@v1
with:
# Your Optic Cloud Token
optic_token: ${{ secrets.OPTIC_TOKEN }}

# A GitHub token with access to create comments on pull requests
github_token: ${{ secrets.GITHUB_TOKEN }}

# If true, standard check failures will cause this action to fail.
# If false, standard check failures will show in PR comments and
# in Optic Cloud but will not cause the action to fail
standards_fail: true

- name: Install Optic
run: npm install --location global @useoptic/optic

- name: Run Optic
env:
OPTIC_TOKEN: ${{ secrets.OPTIC_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: optic run

0 comments on commit 3948094

Please sign in to comment.