Skip to content

Commit

Permalink
ci: optimize run-name
Browse files Browse the repository at this point in the history
  • Loading branch information
hasundue committed Jul 31, 2024
1 parent 88e2e77 commit f03f02f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Release
run-name: ${{ github.event.head_commit.message }}

on:
push:
Expand All @@ -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
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit f03f02f

Please sign in to comment.