Create Codespaces Prebuild #575
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |