Browse Source

Fix changeset action access to ref branch (#3978)

Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
Ernesto García 2 năm trước cách đây
mục cha
commit
dc1ffa79e7
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      .github/workflows/changeset.yml

+ 3 - 1
.github/workflows/changeset.yml

@@ -20,7 +20,9 @@ jobs:
     if: ${{ !contains(github.event.pull_request.labels.*.name, 'ignore-changeset') }}
     steps:
       - uses: actions/checkout@v3
+        with:
+          fetch-depth: 0 # Include history so Changesets finds merge-base
       - name: Set up environment
         uses: ./.github/actions/setup
       - name: Check changeset
-        run: npx changeset status --since=${{ github.base_ref }}
+        run: npx changeset status --since=origin/${{ github.base_ref }}