From abb506d7eb91a997d3b49b6a79003bb5b4731985 Mon Sep 17 00:00:00 2001 From: Rose Yemelyanova Date: Fri, 12 May 2023 12:32:08 +0000 Subject: [PATCH 1/2] modified name of some workflows. Added a backstage catalog-info validator action --- .../workflows/{validate.yml => asyncapi.yml} | 2 +- .github/workflows/backstage.yml | 17 +++++++++++++++++ .github/workflows/openapi.yml | 8 +++----- 3 files changed, 21 insertions(+), 6 deletions(-) rename .github/workflows/{validate.yml => asyncapi.yml} (94%) create mode 100644 .github/workflows/backstage.yml diff --git a/.github/workflows/validate.yml b/.github/workflows/asyncapi.yml similarity index 94% rename from .github/workflows/validate.yml rename to .github/workflows/asyncapi.yml index 7f7bec077d..d40fabffac 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/asyncapi.yml @@ -1,6 +1,6 @@ # Validates the AsyncAPI definition -name: AsyncAPI Validate +name: AsyncAPI on: push: diff --git a/.github/workflows/backstage.yml b/.github/workflows/backstage.yml new file mode 100644 index 0000000000..00a488241f --- /dev/null +++ b/.github/workflows/backstage.yml @@ -0,0 +1,17 @@ +name: Backstage + +on: + push: + pull_request: + +jobs: + validate: + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: check catalog-info.yaml file + uses: RoadieHQ/backstage-entity-validator@v0.3.11 + with: + path: "./catalog-info.yaml" diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index 20476441c4..65f4d02321 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -1,17 +1,15 @@ -name: Openapi +name: OpenAPI on: push: pull_request: - schedule: - # Run weekly to check latest versions of dependencies - - cron: "0 8 * * WED" + env: # The target python version, which must match the Dockerfile version CONTAINER_PYTHON: "3.11" jobs: - publish: + generate: # pull requests are a duplicate of a branch push if within the same repo. if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest From e343b6ad3997d723ddcbba02bd0554849112334f Mon Sep 17 00:00:00 2001 From: Rose Yemelyanova Date: Fri, 12 May 2023 12:34:21 +0000 Subject: [PATCH 2/2] modified name of a step on the asyncapi workflow --- .github/workflows/asyncapi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/asyncapi.yml b/.github/workflows/asyncapi.yml index d40fabffac..8bfe55e38e 100644 --- a/.github/workflows/asyncapi.yml +++ b/.github/workflows/asyncapi.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@v3 - - name: asyncapi-validate + - name: check asyncapi.yaml file uses: WaleedAshraf/asyncapi-github-action@v0.0.10 with: filepath: "./docs/user/reference/asyncapi.yaml"