-
-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (36 loc) · 1.09 KB
/
Copy pathcodespaces-prebuild.yml
File metadata and controls
40 lines (36 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Codespaces Prebuild
on:
push:
branches: [main]
paths:
- '.devcontainer/**'
- 'pyproject.toml'
- 'uv.lock'
- '.github/workflows/codespaces-prebuild.yml'
schedule:
# Rebuild weekly on Sundays at 2 AM UTC to keep dependencies fresh
- cron: '0 2 * * 0'
workflow_dispatch:
# Least privilege at the workflow level; jobs opt into the scopes they need.
permissions: {}
jobs:
# This workflow triggers GitHub to create a new prebuild
# The actual prebuild happens via Codespaces settings
trigger-prebuild:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false
- name: Log prebuild trigger
run: |
echo "Codespaces prebuild triggered"
echo "This will cache:"
echo " - uv installation"
echo " - Python dependencies (via uv sync)"
echo " - Pre-commit hooks"
echo ""
echo "Agents will get instant startup!"