Skip to content

Commit

Permalink
Fix/workflow for external support (#2444)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHinsh authored Oct 9, 2024
2 parents 562916d + 5c414c6 commit f7b16c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
push:
branches: ["main"]
tags-ignore: ["v*-*"]
pull_request_target:
pull_request:
branches: ["main"]
workflow_dispatch:
inputs:
Expand All @@ -19,7 +19,7 @@ on:
type: boolean

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

defaults:
Expand All @@ -31,6 +31,7 @@ jobs:
# Setup & Configuration
Setup:
name: "Setup & Configuration "
if: ${{ !(github.event.pull_request.head.repo.fork && github.ref == 'refs/heads/main') }}
runs-on: ubuntu-latest
outputs:
GitVersion_BranchName: ${{ steps.gitversion.outputs.GitVersion_BranchName }}
Expand Down Expand Up @@ -58,6 +59,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v1.1.1
with:
Expand Down

0 comments on commit f7b16c3

Please sign in to comment.