From f03f02f27257a836637d53fbb537cc6db9717c42 Mon Sep 17 00:00:00 2001 From: hasundue Date: Thu, 1 Aug 2024 08:28:39 +0900 Subject: [PATCH] ci: optimize run-name --- .github/workflows/release.yml | 6 +++++- .github/workflows/update.yml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2c775fdb..4b2522bd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,4 @@ name: Release -run-name: ${{ github.event.head_commit.message }} on: push: @@ -9,6 +8,11 @@ on: - '**/deno.json' workflow_dispatch: +run-name: >- + ${{ github.event_name == 'workflow_dispatch' + && 'manual release' + || github.event.head_commit.message }} + defaults: run: shell: bash diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 82637499..984a06b4 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -1,11 +1,15 @@ name: Update -run-name: ${{ github.event.head_commit.message }} on: schedule: - cron: '0 23 * * *' workflow_dispatch: +run-name: >- + ${{ github.event_name == 'workflow_dispatch' + && 'manual update' + || 'scheduled update' }} + permissions: contents: write pull-requests: write