Skip to content

Commit 64b5ad5

Browse files
authored
feat: add submodules support, add pre-run and post-run markers for better log visibility (#10)
1 parent c1fbb92 commit 64b5ad5

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

action.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ runs:
106106
uses: actions/checkout@v4
107107
with:
108108
ref: ${{ steps.pr-info.outputs.branch }}
109+
submodules: true # Initialize submodules if needed
109110
repository: ${{ steps.pr-info.outputs.repo }}
110111
token: ${{ inputs.github-token }}
111112

@@ -152,11 +153,33 @@ runs:
152153
shell: bash
153154
run: |
154155
poe install || echo "Failed 'poe install' or the task does not exist. Continuing..."
156+
157+
- name: Print Pre-Run Marker
158+
# Pre-run and post-run markers just help the reader find the relevant
159+
# sections in the logs.
160+
shell: bash
161+
run: |
162+
echo "------------------------------------"
163+
echo "------------------------------------"
164+
echo "-- Running Command: `poe ${{ steps.resolve-command.outputs.command }}` --"
165+
echo "------------------------------------"
166+
echo "------------------------------------"
167+
155168
- name: Run `poe ${{ steps.resolve-command.outputs.command }}`
156169
shell: bash
157170
run: |
158171
poe ${{ steps.resolve-command.outputs.command }}
159172
173+
- name: Print Post-Run Marker
174+
if: always()
175+
shell: bash
176+
run: |
177+
echo "------------------------------------"
178+
echo "------------------------------------"
179+
echo "-- Execution Completed: `poe ${{ steps.resolve-command.outputs.command }}` --"
180+
echo "------------------------------------"
181+
echo "------------------------------------"
182+
160183
- name: Auto commit changes
161184
id: auto-commit
162185
uses: stefanzweifel/git-auto-commit-action@v5
@@ -188,7 +211,7 @@ runs:
188211
uses: peter-evans/create-or-update-comment@v4
189212
with:
190213
comment-id: ${{ steps.comment-start.outputs.comment-id }}
191-
reactions: +1
214+
reactions: "+1"
192215
body: >
193216
🟦 Poe command `${{ steps.resolve-command.outputs.command }}` completed successfully.
194217

0 commit comments

Comments
 (0)