Skip to content

Commit 671e9a5

Browse files
committed
Add ability to deploy redesign based on label
1 parent c4b0f79 commit 671e9a5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/release-drafter.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ categories:
2929
labels:
3030
- 'automation' # When automation is updated
3131
- 'ci' # When automation is updated
32+
- title: '🎨 Redesign'
33+
labels:
34+
- 'redesign' # When it's a redesign feature
3235
exclude-labels:
3336
- 'changelog:skip' # When a PR should be excluded from the changelog
3437
version-resolver:

.github/workflows/preview-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ jobs:
6666
- name: Bootstrap Action Workspace
6767
if: github.repository == 'elastic/docs-builder' && steps.check-files.outputs.any_changed == 'true'
6868
uses: ./.github/actions/bootstrap
69+
70+
- name: Set REDESIGN feature flag
71+
if: contains(github.event.pull_request.labels.*.name, 'redesign')
72+
run: echo "REDESIGN=true" >> $GITHUB_ENV
6973

7074
# we run our artifact directly please use the prebuild
7175
# elastic/docs-builder@main GitHub Action for all other repositories!

0 commit comments

Comments
 (0)