From 2e998ce89f3a12c32cf2d949e4cabb5725ac2e9c Mon Sep 17 00:00:00 2001 From: Harry <14015057+HarryVasanth@users.noreply.github.com> Date: Thu, 29 Feb 2024 11:21:40 +0000 Subject: [PATCH] fix(ga-misc-check-prettier): explicitly define `origin/master` & bump `checkout` action --- .github/workflows/ga-misc-check-prettier.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ga-misc-check-prettier.yml b/.github/workflows/ga-misc-check-prettier.yml index b586d076c..9ca35c8fe 100644 --- a/.github/workflows/ga-misc-check-prettier.yml +++ b/.github/workflows/ga-misc-check-prettier.yml @@ -1,4 +1,4 @@ -name: 💄 GA-Misc - Check-Prettier +name: 💅 GA-Misc - Check-Prettier on: pull_request: @@ -8,18 +8,19 @@ on: jobs: GA-Misc-Check-Prettier: + name: 💅 Run Prettier runs-on: ubuntu-latest steps: - name: 🐧 Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 2 # OR "2" -> To retrieve the preceding commit. - - name: Get all changed *.md file(s) + - name: 🔍 Get all changed *.md file(s) id: changed-md run: | - echo "changed_files=$(git diff --name-only --merge-base master | grep "\.md$" | xargs)" >> $GITHUB_OUTPUT + echo "changed_files=$(git diff --name-only --merge-base origin/master | grep "\.md$" | xargs)" >> $GITHUB_OUTPUT - name: Run step if any *.md file(s) changed if: steps.changed-md.outputs.changed_files != ''