Skip to content

Commit 833ee9d

Browse files
authored
Merge pull request #3508 from NickeZ/feat/add-shortlog
ci: Add shortlog with every artifact message
2 parents 35ed7e8 + 457c85d commit 833ee9d

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,17 @@ jobs:
256256
steps:
257257
- name: Clone the repo
258258
uses: actions/checkout@v4
259+
with:
260+
fetch-depth: 0
259261
- name: Create vars
260262
id: vars
261263
run: |
262-
echo "git_sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
264+
echo "git_sha_short=$(git rev-parse --short HEAD)" >> ${GITHUB_OUTPUT}
265+
{
266+
echo "git_shortlog<<EOF"
267+
git shortlog HEAD~..HEAD
268+
echo EOF
269+
} >> ${GITHUB_OUTPUT}
263270
- name: Message for success
264271
uses: mattermost/action-mattermost-notify@master
265272
continue-on-error: true
@@ -269,12 +276,15 @@ jobs:
269276
MATTERMOST_ICON_URL: https://cdn4.iconfinder.com/data/icons/basic-ui-2-line/32/check-mark-checklist-complete-done-512.png
270277
MATTERMOST_CHANNEL: eng-artifacts
271278
TEXT: |
272-
**New artifacts built**
279+
**${{ github.repository }}: Artifacts built**
273280
([${{ github.ref_name }}](https://github.com/${{ github.repository }}/tree/${{ github.ref_name }}), [${{ steps.vars.outputs.git_sha_short }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }}), [artifacts](https://github.com/${{ github.repository }}/actions/runs/${{github.run_id}}#artifacts))
274281
* Android - [APK](${{needs.android.outputs.artifact-url}})
275282
* Linux - [AppImage](${{needs.qt-linux.outputs.artifact-url-ai}}), [DEB](${{needs.qt-linux.outputs.artifact-url-deb}}), [RPM](${{needs.qt-linux.outputs.artifact-url-rpm}})
276283
* MacOS - [Zip](${{needs.macos.outputs.artifact-url}})
277284
* Windows - [EXE](${{needs.windows.outputs.artifact-url}})
285+
```
286+
${{ steps.vars.outputs.git_shortlog }}
287+
```
278288
279289
- name: Message for failure
280290
uses: mattermost/action-mattermost-notify@master

0 commit comments

Comments
 (0)