mirror of
https://github.com/Microsoft/vscode
synced 2024-07-05 01:08:57 +00:00
Create create-codespaces-prebuild.yml
This commit is contained in:
parent
f5e9925a8b
commit
7acbd6a083
28
.github/workflows/create-codespaces-prebuild.yml
vendored
Normal file
28
.github/workflows/create-codespaces-prebuild.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
name: Create Prebuild
|
||||
on:
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: '0 0 * * *'
|
||||
jobs:
|
||||
createPrebuild:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- id: create-prebuild-production
|
||||
run: |
|
||||
$splat = @{
|
||||
ErrorAction = 'Stop'
|
||||
Uri = 'https://api.github.com/vscs_internal/user/vscode-triage-bot/codespaces/prebuild'
|
||||
Headers = @{
|
||||
'Content-Type' = 'application/json; charset=utf-8'
|
||||
'Authorization' = 'token ${{ secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT }}'
|
||||
}
|
||||
Body = @{
|
||||
ref = 'main'
|
||||
repository_id = 41881900
|
||||
location = 'WestUs2'
|
||||
vscs_target = 'production'
|
||||
} | ConvertTo-Json
|
||||
}
|
||||
|
||||
Invoke-RestMethod @splat
|
||||
shell: pwsh
|
Loading…
Reference in New Issue
Block a user