From fbdcfa96f7e3ac804bb49e0cfdaff924d349e4b3 Mon Sep 17 00:00:00 2001 From: Genevieve Nuebel Date: Wed, 18 Feb 2026 14:08:41 -0700 Subject: [PATCH 1/3] Rename files, fix validate oas, test OAS change --- .github/workflows/{validate.yml => validate-oas-files.yml} | 2 +- .github/workflows/{version.yml => validate-version-label.yml} | 0 openapi/v20111101.yml | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) rename .github/workflows/{validate.yml => validate-oas-files.yml} (98%) rename .github/workflows/{version.yml => validate-version-label.yml} (100%) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate-oas-files.yml similarity index 98% rename from .github/workflows/validate.yml rename to .github/workflows/validate-oas-files.yml index 8274b18..8cc5960 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate-oas-files.yml @@ -1,6 +1,6 @@ name: Validate OAS Files -on: [push] +on: [pull_request] jobs: discover-files: diff --git a/.github/workflows/version.yml b/.github/workflows/validate-version-label.yml similarity index 100% rename from .github/workflows/version.yml rename to .github/workflows/validate-version-label.yml diff --git a/openapi/v20111101.yml b/openapi/v20111101.yml index 1390cb6..d46236f 100644 --- a/openapi/v20111101.yml +++ b/openapi/v20111101.yml @@ -7,6 +7,7 @@ info: The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions. Just getting started? See our [use case guides](/use-cases/). + Test title: MX Platform API version: '20111101' servers: From 5023ea16b3506b4942ab211ae768716bb134215d Mon Sep 17 00:00:00 2001 From: Genevieve Nuebel Date: Wed, 18 Feb 2026 14:14:54 -0700 Subject: [PATCH 2/3] Fix some more stuff --- .github/workflows/validate-oas-files.yml | 31 +++++++++++++------- .github/workflows/validate-version-label.yml | 4 +-- 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/.github/workflows/validate-oas-files.yml b/.github/workflows/validate-oas-files.yml index 8cc5960..bb5f5ec 100644 --- a/.github/workflows/validate-oas-files.yml +++ b/.github/workflows/validate-oas-files.yml @@ -3,35 +3,44 @@ name: Validate OAS Files on: [pull_request] jobs: - discover-files: - name: Discover OpenAPI Files + discover-changed-files: + name: Discover Changed OpenAPI Files runs-on: ubuntu-latest outputs: matrix: ${{ steps.set-matrix.outputs.matrix }} + has_changes: ${{ steps.changed-files.outputs.any_changed }} steps: - uses: actions/checkout@v3 - - name: Discover OpenAPI files + - name: Check for changed OAS files + id: changed-files + uses: tj-actions/changed-files@v41 + with: + files: | + openapi/**/*.yml + openapi/**/*.yaml + - name: Build matrix from changed files id: set-matrix + if: steps.changed-files.outputs.any_changed == 'true' run: | - files=$(find openapi/ -name "*.yml" -o -name "*.yaml") - matrix_json=$(echo "$files" | jq -R -s -c ' - split("\n")[:-1] | - map(select(length > 0)) | + matrix_json=$(echo '${{ steps.changed-files.outputs.all_changed_files }}' | jq -R -s -c ' + split(" ") | + map(select(length > 0)) | map({ - openapi_file: ., + openapi_file: ., filename: (. | split("/")[-1]) }) ') echo "matrix=${matrix_json}" >> $GITHUB_OUTPUT - echo "Found files matrix: ${matrix_json}" + echo "Changed files matrix: ${matrix_json}" validate-openapi: name: Validate ${{ matrix.filename }} - needs: discover-files + needs: discover-changed-files + if: needs.discover-changed-files.outputs.has_changes == 'true' runs-on: ubuntu-latest strategy: matrix: - include: ${{ fromJson(needs.discover-files.outputs.matrix) }} + include: ${{ fromJson(needs.discover-changed-files.outputs.matrix) }} steps: - uses: actions/checkout@v3 - name: Validate Schema for ${{ matrix.openapi_file }} diff --git a/.github/workflows/validate-version-label.yml b/.github/workflows/validate-version-label.yml index e80d2f8..2fa525f 100644 --- a/.github/workflows/validate-version-label.yml +++ b/.github/workflows/validate-version-label.yml @@ -1,11 +1,11 @@ -name: Version +name: Validate Version Label on: pull_request: types: [opened, labeled, unlabeled, synchronize] jobs: - Version: + ValidateVersionLabel: runs-on: ubuntu-latest permissions: issues: write From da88a4882467d7c2d4277e5cb53c8d24776291a4 Mon Sep 17 00:00:00 2001 From: Genevieve Nuebel Date: Wed, 18 Feb 2026 14:20:26 -0700 Subject: [PATCH 3/3] Undo name change gh is angry --- .github/workflows/validate-version-label.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate-version-label.yml b/.github/workflows/validate-version-label.yml index 2fa525f..e80d2f8 100644 --- a/.github/workflows/validate-version-label.yml +++ b/.github/workflows/validate-version-label.yml @@ -1,11 +1,11 @@ -name: Validate Version Label +name: Version on: pull_request: types: [opened, labeled, unlabeled, synchronize] jobs: - ValidateVersionLabel: + Version: runs-on: ubuntu-latest permissions: issues: write