-
-
Notifications
You must be signed in to change notification settings - Fork 671
51 lines (45 loc) · 1.16 KB
/
build-documents.yml
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
name: Build Documents
on:
workflow_dispatch:
pull_request:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
filters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: dorny/paths-filter@v3.0.0
id: filter
with:
filters: |
docker:
- 'docker/**/*'
v5:
- '5.0/**/*'
v4:
- '4.0/**/*'
outputs:
docker: ${{ steps.filter.outputs.docker }}
v4: ${{ steps.filter.outputs.v4 }}
v5: ${{ steps.filter.outputs.v5 }}
build-image:
if: needs.filters.outputs.docker == 'true'
needs: filters
uses: owasp/asvs/.github/workflows/build-and-publish-docker-image.yml@master
build-v4:
if: ${{ always() && needs.filters.outputs.v4 == 'true' }}
needs:
- build-image
- filters
uses: owasp/asvs/.github/workflows/create-4.0-outputs.yml@master
build-v5:
if: ${{ always() && needs.filters.outputs.v5 == 'true' }}
needs:
- build-image
- filters
uses: owasp/asvs/.github/workflows/create-5.0-outputs.yml@master