Skip to content

Commit 95bc0a9

Browse files
vorporealoz-agent
andcommitted
Use github.action_ref for repo-sync checkout instead of hardcoded v1
github.action_ref resolves to whatever ref the caller used (e.g. david/integration during testing, v1 in production), so the workflow always checks out the matching version of the tooling. Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent 3ff952d commit 95bc0a9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/escalation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- uses: actions/checkout@v4
6363
with: { token: "${{ steps.token.outputs.token }}" }
6464
- uses: actions/checkout@v4
65-
with: { repository: warpdotdev/repo-sync, ref: v1, path: .repo-sync, token: "${{ steps.token.outputs.token }}" }
65+
with: { repository: warpdotdev/repo-sync, ref: ${{ github.action_ref }}, path: .repo-sync, token: "${{ steps.token.outputs.token }}" }
6666
- uses: actions/setup-python@v5
6767
with: { python-version: "3.12" }
6868
- run: pip install -e .repo-sync

.github/workflows/sync.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- uses: actions/checkout@v4
5656
with: { fetch-depth: 0, token: "${{ steps.token.outputs.token }}" }
5757
- uses: actions/checkout@v4
58-
with: { repository: warpdotdev/repo-sync, ref: v1, path: .repo-sync, token: "${{ steps.token.outputs.token }}" }
58+
with: { repository: warpdotdev/repo-sync, ref: ${{ github.action_ref }}, path: .repo-sync, token: "${{ steps.token.outputs.token }}" }
5959
- uses: actions/setup-python@v5
6060
with: { python-version: "3.12" }
6161
- run: pip install -e .repo-sync

0 commit comments

Comments
 (0)