Skip to content

Commit

Permalink
docs: update publish-provider-contract readme
Browse files Browse the repository at this point in the history
  • Loading branch information
YOU54F authored Aug 15, 2022
1 parent 61e14e1 commit a488b05
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion publish-provider-contract/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,21 @@ jobs:
steps:
# MANDATORY: Must use 'checkout' first
- uses: actions/checkout@v2
- uses: pactflow/actions/[email protected]
- name: Publish provider contract on passing test run
if: success()
uses: pactflow/actions/[email protected]
env:
oas_file: src/oas/user.yml
results_file: src/results/report.md
- name: Publish provider contract on failing test run
# ensure we publish results even if the tests fail
if: failure()
uses: pactflow/actions/[email protected]
env:
oas_file: src/oas/user.yml
results_file: src/results/report.md
# ensure we set the EXIT_CODE to ensure we upload a failing self-verification result
EXIT_CODE: 1
```
## Notes
Expand Down

0 comments on commit a488b05

Please sign in to comment.