diff options
author | Safia Abdalla <safia@microsoft.com> | 2021-12-21 21:17:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-21 21:17:37 +0300 |
commit | 73c1a8d8aa890625b9a627cc12da278049ac362a (patch) | |
tree | 744011fb93b712f56e912c96c56354ad3e97ad9e /.github | |
parent | 604535b58a9eebe103a4ab55d5e95d29357173c4 (diff) |
Add support for GitHub Codespaces prebuilds (#38793)
* Add support for GitHub Codespaces prebuilds
* Add documenting comment
* Update token name
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/create-codespace-prebuild.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/create-codespace-prebuild.yml b/.github/workflows/create-codespace-prebuild.yml new file mode 100644 index 0000000000..89951b73ae --- /dev/null +++ b/.github/workflows/create-codespace-prebuild.yml @@ -0,0 +1,26 @@ +# This workflow adds support for prebuilding Codespaces +# for aspnetcore. For more information on prebuilds, +# see https://docs.github.com/en/codespaces/customizing-your-codespace/prebuilding-codespaces-for-your-project. +# This change prebuilds and pools Codespace instances configured +# for the aspnetcore repo and reduces the amount of time users +# have to wait for a new Codespace to be built and initialized. +name: Create Codespaces Prebuild +on: + schedule: + # Run at 06:00 am UTC every day + - cron: '0 6 * * *' + workflow_dispatch: +jobs: + createPrebuild: + if: github.repository == 'dotnet/aspnetcore' + 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.EXPERIMENTAL_CODESPACE_CACHE_TOKEN }} |