Przeglądaj źródła

Specify repository info in openapi head checkout

Niels van Velzen 3 lat temu
rodzic
commit
2491dd513c
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      .github/workflows/openapi.yml

+ 2 - 1
.github/workflows/openapi.yml

@@ -13,7 +13,8 @@ jobs:
       - name: Checkout repository
       - name: Checkout repository
         uses: actions/checkout@v2
         uses: actions/checkout@v2
         with:
         with:
-          ref: ${{ github.head_ref }}
+          ref: ${{ github.event.pull_request.head.ref }}
+          repository: ${{ github.event.pull_request.head.repo.full_name }}
       - name: Setup .NET Core
       - name: Setup .NET Core
         uses: actions/setup-dotnet@v1
         uses: actions/setup-dotnet@v1
         with:
         with: