-
Notifications
You must be signed in to change notification settings - Fork 172
58 lines (51 loc) · 1.5 KB
/
pull-request.yml
File metadata and controls
58 lines (51 loc) · 1.5 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Pull Request CI
on:
workflow_dispatch: # Allow manual triggering
pull_request: # Trigger on all pull requests
paths:
- 'skiko/**'
- '.github/workflows/**'
jobs:
check-docker-changes:
name: 'Check Docker Changes'
runs-on: ubuntu-24.04
outputs:
docker-changed: ${{ steps.filter.outputs.docker }}
steps:
- uses: actions/checkout@v4
name: 'Check out code'
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
docker:
- 'skiko/docker/**'
- '.github/workflows/docker-publish.yml'
docker-publish:
name: 'Docker Publish (Dry Run)'
needs: check-docker-changes
if: needs.check-docker-changes.outputs.docker-changed == 'true'
uses: ./.github/workflows/docker-publish.yml
with:
publish: false
permissions:
contents: read
packages: write
tests:
name: 'Tests'
needs: check-docker-changes
uses: ./.github/workflows/tests.yml
with:
build-docker: ${{ needs.check-docker-changes.outputs.docker-changed == 'true' }}
publish-dry-run:
name: 'Publish Dry Run'
needs: check-docker-changes
uses: ./.github/workflows/publish-dry-run.yml
with:
build-docker: ${{ needs.check-docker-changes.outputs.docker-changed == 'true' }}
docs:
name: 'Documentation'
needs: check-docker-changes
uses: ./.github/workflows/docs.yml
with:
build-docker: ${{ needs.check-docker-changes.outputs.docker-changed == 'true' }}