ROX-27176: Remove observability dead code from acs-fleet-manager (#2103) #66
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: Dispatch OpenAPI File Change event | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "openapi/*.yaml" | |
jobs: | |
dispatch: | |
if: github.repository == 'stackrox/acs-fleet-manager' # TODO change the repository URL to match your url | |
env: | |
APP_SERVICES_CI_TOKEN: ${{ secrets.GH_CI_TOKEN }} | |
strategy: | |
matrix: | |
repo: | |
- "redhat-developer/app-services-sdk-go" | |
- "redhat-developer/app-services-sdk-js" | |
- "redhat-developer/app-services-sdk-java" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
base: main | |
list-files: json | |
filters: | | |
openapi: | |
- 'openapi/*.yaml' | |
- if: contains(steps.filter.outputs.openapi_files, 'openapi/fleet-manager.yaml') | |
name: Fleet Manager OpenAPI changed | |
uses: peter-evans/repository-dispatch@v3 | |
with: | |
token: ${{ env.APP_SERVICES_CI_TOKEN }} | |
repository: ${{ matrix.repo }} | |
event-type: openapi-spec-change | |
client-payload: '{ "id": "dinosaur-mgmt/v1", "download_url":"https://raw.githubusercontent.com/stackrox/acs-fleet-manager/main/openapi/fleet-manager.yaml"}' #TODO change the repository URL to match your fleet manager URL |