Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Run Codespaces prebuild only in upstream repo
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 committed Nov 29, 2021
commit 04c38eff347ea590401c57be8f756fb731ca2983
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