From f968ac3b23b685b10637f2382bd6f3fef9cf5ea3 Mon Sep 17 00:00:00 2001 From: Petr Pucil Date: Fri, 23 Aug 2024 23:58:13 +0200 Subject: [PATCH] GH Actions: better run name when rebuilding with new KSC 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 --- .github/workflows/main.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 95b8ee0d..e85cc78f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: