Explorar o código

Use sha hash instead of branch name for OpenAPI workflow head reference (#7340)

Niels van Velzen %!s(int64=3) %!d(string=hai) anos
pai
achega
6a8a6a1325
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      .github/workflows/openapi.yml

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

@@ -14,7 +14,7 @@ jobs:
       - name: Checkout repository
       - name: Checkout repository
         uses: actions/checkout@v2
         uses: actions/checkout@v2
         with:
         with:
-          ref: ${{ github.event.pull_request.head.ref }}
+          ref: ${{ github.event.pull_request.head.sha }}
           repository: ${{ github.event.pull_request.head.repo.full_name }}
           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