|
1 | 1 | name: Configuration |
2 | 2 |
|
3 | | -env: |
4 | | - # please list the required tags here |
5 | | - tag-bump-vcpkg: ${{ contains( github.event.pull_request.labels.*.name, 'bump-vcpkg' ) }} |
6 | | - tag-full-ci: ${{ contains( github.event.pull_request.labels.*.name, 'full-ci' ) }} |
7 | | - tag-skip-image-rebuild: ${{ contains( github.event.pull_request.labels.*.name, 'skip-image-rebuild' ) }} |
8 | | - tag-update-doc: ${{ contains( github.event.pull_request.labels.*.name, 'update-doc' ) }} |
9 | | - tag-upload-test-artifacts: ${{ contains( github.event.pull_request.labels.*.name, 'upload-test-artifacts' ) }} |
10 | | - |
11 | 3 | on: |
12 | 4 | workflow_call: |
13 | 5 | outputs: |
|
30 | 22 | # automatically computed or tag-based values |
31 | 23 | full-config-build: |
32 | 24 | description: |
33 | | - value: ${{ github.event_name == 'schedule' || env.tag-full-ci }} |
| 25 | + value: ${{ github.event_name == 'schedule' || jobs.tags.outputs.full-ci }} |
34 | 26 | docker-image-tag: |
35 | 27 | description: |
36 | 28 | value: ${{ jobs.prepare-config.outputs.docker-image-tag }} |
|
42 | 34 | value: ${{ jobs.prepare-config.outputs.linux-changes == 'true' && github.event_name != 'schedule' }} |
43 | 35 | need-windows-rebuild: |
44 | 36 | description: |
45 | | - value: ${{ jobs.prepare-config.outputs.windows-changes == 'true' || env.tag-bump-vcpkg }} |
| 37 | + value: ${{ jobs.prepare-config.outputs.windows-changes == 'true' || jobs.tags.outputs.bump-vcpkg }} |
46 | 38 | upload-artifacts: |
47 | 39 | description: |
48 | | - value: ${{ github.event_name == 'push' || env.tag-full-ci }} |
| 40 | + value: ${{ github.event_name == 'push' || jobs.tags.outputs.full-ci }} |
49 | 41 | upload-test-artifacts: |
50 | 42 | description: |
51 | | - value: ${{ env.tag-upload-test-artifacts }} |
| 43 | + value: ${{ jobs.tags.outputs.upload-test-artifacts }} |
52 | 44 | version-namespace: |
53 | 45 | description: |
54 | | - value: ${{ env.tag-full-ci && github.event_name != 'push' && 'pr-test' || '' }} |
| 46 | + value: ${{ jobs.tags.outputs.full-ci && github.event_name != 'push' && 'pr-test' || '' }} |
55 | 47 |
|
56 | 48 | jobs: |
| 49 | + tags: |
| 50 | + outputs: |
| 51 | + # please list the required tags here |
| 52 | + bump-vcpkg: ${{ contains( github.event.pull_request.labels.*.name, 'bump-vcpkg' ) }} |
| 53 | + full-ci: ${{ contains( github.event.pull_request.labels.*.name, 'full-ci' ) }} |
| 54 | + skip-image-rebuild: ${{ contains( github.event.pull_request.labels.*.name, 'skip-image-rebuild' ) }} |
| 55 | + update-doc: ${{ contains( github.event.pull_request.labels.*.name, 'update-doc' ) }} |
| 56 | + upload-test-artifacts: ${{ contains( github.event.pull_request.labels.*.name, 'upload-test-artifacts' ) }} |
| 57 | + |
| 58 | + runs-on: ubuntu-latest |
| 59 | + |
57 | 60 | prepare-config: |
58 | 61 | outputs: |
59 | 62 | docker-image-tag: ${{ steps.select-docker-image-tag.outputs.image_tag }} |
|
0 commit comments