From ecd54dc0c4c49000fa521fa78290a48769a446b1 Mon Sep 17 00:00:00 2001 From: CSY-ModelCloud <csy@modelcloud.ai> Date: Mon, 6 Jan 2025 14:17:08 +0800 Subject: [PATCH] [CI] add run name support for actions (#1031) * [CI] add run name support * [CI] update description --- .github/workflows/release.yml | 6 ++++++ .github/workflows/unit_tests.yml | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c2e67d9b1..fa4021ff5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,7 @@ name: Release +run-name: "${{ github.event.inputs.title }}" + defaults: run: shell: bash -le {0} @@ -9,6 +11,10 @@ on: repository_dispatch: workflow_dispatch: inputs: + title: + description: 'set a title for this run' + required: false + default: '' repo: description: 'GitHub repo {owner}/{repo}' required: false diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index 9b5afc766..9c3bbc7cd 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -1,5 +1,7 @@ name: Unit Tests +run-name: "${{ github.event.inputs.title }}" + defaults: run: shell: bash -le {0} @@ -8,6 +10,10 @@ on: repository_dispatch: workflow_dispatch: inputs: + title: + description: 'set a title for this run' + required: false + default: '' repo: description: 'GitHub repo {owner}/{repo}' required: false @@ -37,7 +43,7 @@ on: required: false default: '10' m4-only: - description: 'only run m4(test only)' + description: 'run only m4 test only' type: boolean required: false default: false