Skip to content

Commit a38e2fd

Browse files
committed
ci(pr-checks): use pr shas for dockerfile change detection
1 parent 0b3bdeb commit a38e2fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pr-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232

3333
- name: Build Docker image if Dockerfile changed
3434
run: |
35-
if git diff --name-only origin/${{ github.base_ref }} | grep -q '^Dockerfile$'; then
35+
if git diff --name-only "${{ github.event.pull_request.base.sha }}" "${{ github.sha }}" | grep -q '^Dockerfile$'; then
3636
echo "Dockerfile changed — building image..."
3737
docker build -t opencode-cli-pr:latest .
3838
else

0 commit comments

Comments
 (0)