Skip to content

Commit

Permalink
Add commit message / PR title to CI run name
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Nov 22, 2024
1 parent 5eb6fc7 commit cb9e5f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Java CI with Gradle
run-name: "Test changes in ${{ github.ref_name }}"
run-name: |
${{ github.event_name == 'pull_request'
&& format('Test changes in PR #{0}: {1}', github.event.pull_request.number, github.event.pull_request.title)
|| format('Test changes in {0}: {1}', github.ref_name, github.event.head_commit.message) }}
on:
push:
Expand Down

0 comments on commit cb9e5f0

Please sign in to comment.