From 6dab3205d4a88d1469c7dc0d179b436f1a89960b Mon Sep 17 00:00:00 2001 From: Shai Reznik Date: Sun, 28 Jul 2024 22:52:20 +0300 Subject: [PATCH] ci: check mock changesets --- .github/workflows/ci.yml | 8 ++++++++ .mock_changesets/bla.md | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) delete mode 100644 .mock_changesets/bla.md diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 791a646085a..be8fa124982 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,6 +73,14 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Log removed files using GitHub Script + if: github.ref == 'refs/heads/main' && github.event_name == 'push' + uses: actions/github-script@v6 + with: + script: | + const removedFiles = context.payload.head_commit.removed; + console.log("Removed files:", removedFiles); + - name: Check for removed .mock_changesets files and directory contents id: check_changesets if: github.ref == 'refs/heads/main' && github.event_name == 'push' diff --git a/.mock_changesets/bla.md b/.mock_changesets/bla.md deleted file mode 100644 index 63cd04a52f5..00000000000 --- a/.mock_changesets/bla.md +++ /dev/null @@ -1 +0,0 @@ -Hey \ No newline at end of file