Skip to content

Commit 246fef5

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 0d9436e commit 246fef5

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
@@ -202,6 +202,23 @@ jobs:
202202
git checkout ${{ github.sha }}
203203
fi
204204
205+
- name: Report kdevops commit information
206+
shell: bash
207+
run: |
208+
set -euxo pipefail
209+
210+
# Get current commit info
211+
commit_sha=$(git rev-parse HEAD)
212+
commit_short=$(git rev-parse --short HEAD)
213+
commit_subject=$(git log -1 --pretty=format:"%s")
214+
215+
# Report the kdevops version used
216+
echo "::notice title=kdevops Commit::Using kdevops commit $commit_short ($commit_sha): $commit_subject"
217+
218+
# Also show in regular output for logs
219+
echo "✅ Running kdevops CI with commit: $commit_short"
220+
echo "📝 Commit message: $commit_subject"
221+
205222
- name: Configure kdevops
206223
uses: ./.github/actions/configure
207224
with:

0 commit comments

Comments
 (0)