Update send-to-discovery.yml #123
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Send Discovered API to ApiConnect | |
on: [pull_request, workflow_dispatch, push] | |
env: | |
API_HOST: apps.dw-rosa-01.oweu.p1.openshiftapps.com | |
# platform_api_prefix is not required to change for ApiConnect on Cloud | |
PLATFORM_API_PREFIX: production-mgmt-platform-api-apic | |
INSECURE_SKIP_TLS_VERIFY: True | |
PROVIDER_ORG: e2etest1 | |
#API_FILES: APIfolder/uber-api.json | |
API_FOLDERS: APIfolder,APIfolderTwo | |
jobs: | |
run-discovery: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Difference | |
id: difference-output | |
run: | | |
echo "action_updates=$(git diff --name-only --diff-filter=ACMRT ${{ github.event.before }} ${{ github.sha }} | xargs)" >> $GITHUB_OUTPUT | |
- uses: ibm-apiconnect/apic-discovery-action@ng/skiptls | |
id: discover-apis | |
with: | |
api_host: ${{ env.API_HOST }} | |
platform_api_prefix: ${{ env.PLATFORM_API_PREFIX }} | |
insecure_skip_tls_verify: ${{ env.INSECURE_SKIP_TLS_VERIFY }} | |
provider_org: ${{ env.PROVIDER_ORG }} | |
api_key: ${{ secrets.apicApikey }} | |
api_files: ${{ env.API_FILES }} | |
api_folders: ${{ env.API_FOLDERS }} | |
resync_check: ${{ true }} | |
git_diff: ${{ steps.difference-output.outputs.action_updates }} | |
- name: Display the action-result | |
run: | | |
echo "Result of the action: ${{ steps.discover-apis.outputs.action-result }}" | |
echo "End" |