-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 994 Bytes
/
pr-checks.yml
File metadata and controls
45 lines (37 loc) · 994 Bytes
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
41
42
43
44
45
---
name: Pull Request validation
on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
concurrency:
group: pr-validation-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
id: checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Detect changed files
id: changed-files
uses: tj-actions/changed-files@v46
with:
files: |
Dockerfile
- name: Setup toolchain with mise
uses: jdx/mise-action@v2
- name: Run prek hooks
run: prek run --all-files --show-diff-on-failure --color=always
- name: Build Docker image if Dockerfile changed
if: steps.changed-files.outputs.any_changed == 'true'
run: |
docker build -t opencode-cli-pr:latest .