create-codespace-prebuild.yml 958 B

1234567891011121314151617181920212223242526
  1. # This workflow adds support for prebuilding Codespaces
  2. # for aspnetcore. For more information on prebuilds,
  3. # see https://docs.github.com/en/codespaces/customizing-your-codespace/prebuilding-codespaces-for-your-project.
  4. # This change prebuilds and pools Codespace instances configured
  5. # for the aspnetcore repo and reduces the amount of time users
  6. # have to wait for a new Codespace to be built and initialized.
  7. name: Create Codespaces Prebuild
  8. on:
  9. schedule:
  10. # Run at 06:00 am UTC every day
  11. - cron: '0 6 * * *'
  12. workflow_dispatch:
  13. jobs:
  14. createPrebuild:
  15. if: github.repository == 'dotnet/aspnetcore'
  16. permissions:
  17. contents: write
  18. runs-on: ubuntu-latest
  19. steps:
  20. - uses: actions/checkout@v2
  21. - uses: github/codespaces-precache@v1-stable
  22. with:
  23. regions: WestUs2 EastUs WestEurope
  24. sku_name: premiumLinux
  25. env:
  26. GITHUB_TOKEN: ${{ secrets.EXPERIMENTAL_CODESPACE_CACHE_TOKEN }}