Skip to content

Commit dcf24a9

Browse files
committed
github: kdevops: add commit version reporting
This displays the kdevops commit being used right after checkout instead of waiting until the end of the workflow. Users can now see which version is running right away for validation. Generated-by: Claude AI Signed-off-by: Daniel Gomez <[email protected]>
1 parent f1c64c3 commit dcf24a9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/kdevops.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,23 @@ jobs:
218218
fi
219219
fi
220220
221+
- name: Report kdevops commit information
222+
shell: bash
223+
run: |
224+
set -euxo pipefail
225+
226+
# Get current commit info
227+
commit_sha=$(git rev-parse HEAD)
228+
commit_short=$(git rev-parse --short HEAD)
229+
commit_subject=$(git log -1 --pretty=format:"%s")
230+
231+
# Report the kdevops version used
232+
echo "::notice title=kdevops Commit::Using kdevops commit $commit_short ($commit_sha): $commit_subject"
233+
234+
# Also show in regular output for logs
235+
echo "✅ Running kdevops CI with commit: $commit_short"
236+
echo "📝 Commit message: $commit_subject"
237+
221238
- name: Configure kdevops
222239
uses: ./.github/actions/configure
223240
with:

0 commit comments

Comments
 (0)