Skip to content

Commit f7b16c3

Browse files
authored
Fix/workflow for external support (#2444)
2 parents 562916d + 5c414c6 commit f7b16c3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
push:
99
branches: ["main"]
1010
tags-ignore: ["v*-*"]
11-
pull_request_target:
11+
pull_request:
1212
branches: ["main"]
1313
workflow_dispatch:
1414
inputs:
@@ -19,7 +19,7 @@ on:
1919
type: boolean
2020

2121
concurrency:
22-
group: ${{ github.workflow }}-${{ github.ref }}
22+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.pull_request.head.repo.fork }}
2323
cancel-in-progress: true
2424

2525
defaults:
@@ -31,6 +31,7 @@ jobs:
3131
# Setup & Configuration
3232
Setup:
3333
name: "Setup & Configuration "
34+
if: ${{ !(github.event.pull_request.head.repo.fork && github.ref == 'refs/heads/main') }}
3435
runs-on: ubuntu-latest
3536
outputs:
3637
GitVersion_BranchName: ${{ steps.gitversion.outputs.GitVersion_BranchName }}
@@ -58,6 +59,7 @@ jobs:
5859
uses: actions/checkout@v4
5960
with:
6061
fetch-depth: 0
62+
6163
- name: Install GitVersion
6264
uses: gittools/actions/gitversion/[email protected]
6365
with:

0 commit comments

Comments
 (0)