Skip to content

Commit b23e018

Browse files
committed
Fix tag processing
1 parent 632d0bc commit b23e018

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

.github/workflows/config.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
name: Configuration
22

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-
113
on:
124
workflow_call:
135
outputs:
@@ -30,7 +22,7 @@ on:
3022
# automatically computed or tag-based values
3123
full-config-build:
3224
description:
33-
value: ${{ github.event_name == 'schedule' || env.tag-full-ci }}
25+
value: ${{ github.event_name == 'schedule' || jobs.tags.outputs.full-ci }}
3426
docker-image-tag:
3527
description:
3628
value: ${{ jobs.prepare-config.outputs.docker-image-tag }}
@@ -42,18 +34,29 @@ on:
4234
value: ${{ jobs.prepare-config.outputs.linux-changes == 'true' && github.event_name != 'schedule' }}
4335
need-windows-rebuild:
4436
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 }}
4638
upload-artifacts:
4739
description:
48-
value: ${{ github.event_name == 'push' || env.tag-full-ci }}
40+
value: ${{ github.event_name == 'push' || jobs.tags.outputs.full-ci }}
4941
upload-test-artifacts:
5042
description:
51-
value: ${{ env.tag-upload-test-artifacts }}
43+
value: ${{ jobs.tags.outputs.upload-test-artifacts }}
5244
version-namespace:
5345
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' || '' }}
5547

5648
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+
5760
prepare-config:
5861
outputs:
5962
docker-image-tag: ${{ steps.select-docker-image-tag.outputs.image_tag }}

0 commit comments

Comments
 (0)