Skip to content

Commit

Permalink
GH Actions: better run name when rebuilding with new KSC
Browse files Browse the repository at this point in the history
This mimics the behavior of the old script written for Travis CI that we
no longer use:
https://github.com/kaitai-io/kaitai_struct/blob/a8afea8ef9f202bbd2687377e0921514d4fc451f/trigger-kaitai_struct_webide#L14
  • Loading branch information
generalmimon committed Aug 23, 2024
1 parent 03de7ce commit f968ac3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
name: build

# If this CI run was triggered via `repository_dispatch` from
# https://github.com/kaitai-io/kaitai_struct, change the run name so that it's
# not just "rebuild". Otherwise, return an empty string so that GitHub keeps the
# default name.
run-name: |
${{ (github.event_name == 'repository_dispatch' &&
github.event.action == 'rebuild' &&
github.event.client_payload.ksc_version) &&
format('Build with kaitai-struct-compiler {0}', github.event.client_payload.ksc_version) ||
'' }}
on:
push:
branches:
Expand Down

0 comments on commit f968ac3

Please sign in to comment.