From 7acbd6a0834a1fdc851e93a72d3f27cf7185a20a Mon Sep 17 00:00:00 2001 From: Tyler James Leonhardt Date: Tue, 6 Jul 2021 15:12:28 -0700 Subject: [PATCH] Create create-codespaces-prebuild.yml --- .../workflows/create-codespaces-prebuild.yml | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/create-codespaces-prebuild.yml diff --git a/.github/workflows/create-codespaces-prebuild.yml b/.github/workflows/create-codespaces-prebuild.yml new file mode 100644 index 00000000000..adbe0d463df --- /dev/null +++ b/.github/workflows/create-codespaces-prebuild.yml @@ -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