We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a2e3fd commit 6bc7f71Copy full SHA for 6bc7f71
1 file changed
.github/workflows/pr-checks.yml
@@ -0,0 +1,30 @@
1
+---
2
+name: Pull Request validation
3
+
4
+on:
5
+ - pull_request
6
7
+jobs:
8
+ pre-commit:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - name: Checkout code
12
+ id: checkout
13
+ uses: actions/checkout@v5
14
15
+ - name: Set up Python
16
+ id: setup-python
17
+ uses: actions/setup-python@v5
18
19
+ - name: Run pre-commit checks
20
+ id: pre-commit
21
+ uses: cloudposse/github-action-pre-commit@v4.0.0
22
23
+ - name: Build Docker image if Dockerfile changed
24
+ run: |
25
+ if git diff --name-only origin/${{ github.base_ref }} | grep -q '^Dockerfile$'; then
26
+ echo "Dockerfile changed — building image..."
27
+ docker build -t opencode-cli-pr:latest .
28
+ else
29
+ echo "Dockerfile not changed — skipping build."
30
+ fi
0 commit comments