Pere Villega
03/14/2024, 2:56 PM- name: Publish provider contract on passing test run
uses: pactflow/actions/publish-provider-contract@v1.2.0
env:
oas_file: ${{ env.OPENAPI_FILE }}
results_file: ${{ env.CHANGELOG_FILE }}
version: ${{ steps.prepare-env.outputs.version }}
PACT_BROKER_TOKEN: ${{ env.TOKEN_IDP_PACTFLOW }}
but I get this error about the yaml file being missing:
Status: Downloaded newer image for pactfoundation/pact-cli:latest
/usr/lib/ruby/gems/3.2.0/gems/pact_broker-client-1.75.1/lib/pactflow/client/cli/provider_contract_commands.rb:75:in `read': No such file or directory @ rb_sysopen - openapi.yaml (Errno::ENOENT)
from /usr/lib/ruby/gems/3.2.0/gems/pact_broker-client-1.75.1/lib/pactflow/client/cli/provider_contract_commands.rb:75
but the file is definitely there. Is there a way to confirm the execution path of the task, or something?Yousaf Nabi (pactflow.io)
docker run --rm \
-w ${PWD} \
-v ${PWD}:${PWD} \
-e PACT_BROKER_BASE_URL=$PACT_BROKER_BASE_URL \
-e PACT_BROKER_TOKEN=$PACT_BROKER_TOKEN \
pactfoundation/pact-cli:latest sh -c 'ls'Pere Villega
03/14/2024, 4:29 PMuses: pactflow/actions/publish-provider-contract@v1.2.0 it fails. I run this in the action, as mentioned:
- name: Publish provider contract on passing test run
uses: pactflow/actions/publish-provider-contract@v1.2.0
env:
oas_file: ${{ env.OPENAPI_FILE }}
results_file: ${{ env.CHANGELOG_FILE }}
version: ${{ steps.prepare-env.outputs.version }}
PACT_BROKER_TOKEN: ${{ env.TOKEN_IDP_PACTFLOW }}Pere Villega
03/14/2024, 4:29 PMYousaf Nabi (pactflow.io)
ls the workspace prior to running the publish step to confirm env.OPENAPI_FILE is indeed available at the working directoryPere Villega
03/14/2024, 5:15 PMPere Villega
03/14/2024, 6:12 PM