Skip to content

Commit e1ea1a6

Browse files
authored
Run Codespaces prebuild only in upstream repo (#62162)
The codespaces prebuild action can only run in the dotnet/runtime repo and not forks. The feature needs to be enabled for each repo and will fail if it isn't enabled. In order to minimize failure notifications, add a check to the action so it only runs against dotnet/runtime.
1 parent 13c8988 commit e1ea1a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/create-codespaces-prebuild.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
workflow_dispatch:
77
jobs:
88
createPrebuild:
9+
# Only run in the main repository since it will fail in forks
10+
if: github.repository == 'dotnet/runtime'
911
permissions:
1012
contents: write
1113
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)