Skip to content

Commit 15c540c

Browse files
committed
Add groups
1 parent 986de30 commit 15c540c

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

actions/preview/action.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ runs:
1515
using: "composite"
1616
steps:
1717

18+
- name: group-start
19+
shell: bash
20+
run: |
21+
echo ""::group::Determing the type of event"
22+
1823
- name: Get types
1924
id: type
2025
shell: bash
@@ -33,9 +38,32 @@ runs:
3338
echo "IS_DEPLOYMENT: ${{ steps.type.outputs.IS_DEPLOYMENT }}"
3439
echo "IS_CLEANUP: ${{ steps.type.outputs.IS_CLEANUP }}"
3540
41+
- name: group-end
42+
shell: bash
43+
run: |
44+
echo ""::endgroup::"
45+
46+
47+
- name: group-start
48+
shell: bash
49+
run: |
50+
echo ""::group::Authenticate to AWS"
51+
52+
3653
- name: Authenticate
3754
uses: elastic/docs-builder/.github/actions/aws-auth@main
3855

56+
- name: group-end
57+
shell: bash
58+
run: |
59+
echo ""::endgroup::"
60+
61+
- name: group-start
62+
if: steps.type.outputs.IS_CLEANUP == 'true'
63+
shell: bash
64+
run: |
65+
echo ""::group::Cleanup"
66+
3967
- name: Cleanup
4068
if: steps.type.outputs.IS_CLEANUP == 'true'
4169
shell: bash
@@ -68,6 +96,18 @@ runs:
6896
});
6997
}
7098
99+
- name: group-end
100+
shell: bash
101+
if: steps.type.outputs.IS_CLEANUP == 'true'
102+
run: |
103+
echo ""::endgroup::"
104+
105+
- name: group-start
106+
if: steps.type.outputs.IS_DEPLOYMENT == 'true'
107+
shell: bash
108+
run: |
109+
echo ""::group::Deploy"
110+
71111
- name: Create Deployment
72112
if: steps.type.outputs.IS_DEPLOYMENT == 'true'
73113
uses: actions/github-script@v7
@@ -150,3 +190,8 @@ runs:
150190
log_url: '${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}',
151191
description: "Deployment completed",
152192
})
193+
194+
- name: group-end
195+
shell: bash
196+
run: |
197+
echo ""::endgroup::"

0 commit comments

Comments
 (0)