mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-24 21:54:01 -10:00
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.
22 lines
586 B
YAML
22 lines
586 B
YAML
name: Create Codespaces Prebuild
|
|
on:
|
|
schedule:
|
|
# Run at 06:00 am UTC every day
|
|
- cron: '0 6 * * *'
|
|
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
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: github/codespaces-precache@v1-stable
|
|
with:
|
|
regions: WestUs2 EastUs WestEurope
|
|
sku_name: premiumLinux
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|