aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaus Vium <cvium@users.noreply.github.com>2021-11-05 19:37:30 +0100
committerGitHub <noreply@github.com>2021-11-05 19:37:30 +0100
commitb64d9bcd401d68e12b7e0ef2e2fdb55b895e211a (patch)
tree6622da0c5b1b2ae16d6a52f0337fe32ca16d6254
parent0cd817bba3f79100d4b655549ee6671761f09bb5 (diff)
parent44dc647adb35266f592191a821970359a6fb1324 (diff)
Merge pull request #6782 from nielsvanvelzen/openapi-pr-target
-rw-r--r--.github/workflows/openapi.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml
index 6e370819a..b81875d2c 100644
--- a/.github/workflows/openapi.yml
+++ b/.github/workflows/openapi.yml
@@ -3,7 +3,7 @@ on:
push:
branches:
- master
- pull_request:
+ pull_request_target:
jobs:
openapi-head:
@@ -12,6 +12,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v2
+ with:
+ ref: ${{ github.head_ref }}
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
@@ -53,7 +55,7 @@ jobs:
openapi-diff:
name: OpenAPI - Difference
- if: ${{ github.event_name == 'pull_request' }}
+ if: ${{ github.event_name == 'pull_request_target' }}
runs-on: ubuntu-latest
needs:
- openapi-head