From 2020de9f511a74236ff46f1fd25580f1f5232052 Mon Sep 17 00:00:00 2001 From: IainSAP <46536134+IainSAP@users.noreply.github.com> Date: Mon, 9 Dec 2024 09:56:28 +0000 Subject: [PATCH] Adds conditional changeset file validation (#2671) --- .github/workflows/pipeline.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 00956570ed..e7f6da0e2f 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -45,7 +45,14 @@ jobs: run: pnpm run test env: NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} - - name: Check changesets + - name: Check for changeset files + id: check_changeset_files + uses: andstor/file-existence-action@v3 + with: + files: '.changeset/[!README]*.md' + fail: false + - name: Validate changeset files if found + if: steps.check_changeset_files.outputs.files_exists == 'true' run: pnpm changeset status - name: Cache playwright browsers id: cache-playwright-browsers