Explorar o código

Fix changeset action access to ref branch (#3978)

Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
Ernesto García %!s(int64=2) %!d(string=hai) anos
pai
achega
dc1ffa79e7
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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 }}