Skip to content

Commit

Permalink
Check if repository is a fork
Browse files Browse the repository at this point in the history
  • Loading branch information
semalaiappan committed Jan 3, 2024
1 parent 53dff18 commit d5e1761
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/Pkg EdFi.Ods.CodeGen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ jobs:
shell: pwsh
run: |
.\build.githubactions.ps1 CheckoutBranch -RelativeRepoPath "."
- name: Check if repository is a fork
shell: pwsh
run: |
if ($env:GITHUB_EVENT_NAME -eq "pull_request" -and $env:GITHUB_ACTOR -ne $env:GITHUB_REPOSITORY_OWNER) {
Write-Output "This repository is a fork."
# Perform actions specific for forked repositories
} else {
Write-Output "This repository is not a fork or is the original repository."
# Perform actions for the original repository
}
- name: Cache Nuget packages
uses: actions/cache@58c146cc91c5b9e778e71775dfe9bf1442ad9a12 #v3.2.3
with:
Expand Down

0 comments on commit d5e1761

Please sign in to comment.