diff options
| author | Bond-009 <bond.009@outlook.com> | 2023-06-19 21:03:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-19 21:03:45 +0200 |
| commit | c078391aece1b341343d743d7ecfb002ed177f6c (patch) | |
| tree | 2d6643bbb934c3d1124977a314538adf8c91d926 | |
| parent | 4972fbf2a318cdc6eadfa259a7dbb5dfe1ce92a1 (diff) | |
| parent | 30f6c0a397df25a95b31de517afb3ae89400e84e (diff) | |
Merge pull request #9906 from crobibero/update-gha
| -rw-r--r-- | .github/workflows/openapi.yml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index ad1cedd52..d3dfd0a6a 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -45,10 +45,12 @@ jobs: repository: ${{ github.event.pull_request.head.repo.full_name }} fetch-depth: 0 - name: Checkout common ancestor + env: + HEAD_REF: ${{ github.head_ref }} run: | git remote add upstream https://github.com/${{ github.event.pull_request.base.repo.full_name }} git -c protocol.version=2 fetch --prune --progress --no-recurse-submodules upstream +refs/heads/*:refs/remotes/upstream/* +refs/tags/*:refs/tags/* - ANCESTOR_REF=$(git merge-base upstream/${{ github.base_ref }} origin/${{ github.head_ref }}) + ANCESTOR_REF=$(git merge-base upstream/${{ github.base_ref }} origin/$HEAD_REF) git checkout --progress --force $ANCESTOR_REF - name: Setup .NET uses: actions/setup-dotnet@3447fd6a9f9e57506b15f895c5b76d3b197dc7c2 # v3.2.0 |
