Skip to content

Commit

Permalink
Run Codespaces prebuild only in upstream repo (#62162)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
eerhardt authored Nov 30, 2021
1 parent 13c8988 commit e1ea1a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/create-codespaces-prebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
workflow_dispatch:
jobs:
createPrebuild:
# Only run in the main repository since it will fail in forks
if: github.repository == 'dotnet/runtime'
permissions:
contents: write
runs-on: ubuntu-latest
Expand Down

0 comments on commit e1ea1a6

Please sign in to comment.