Skip to content

Commit 7a2c039

Browse files
authored
Added Speaker user input, the speaker is automatically added to the title
1 parent e28c6ed commit 7a2c039

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/workflows/build.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Site build
22
on:
33
workflow_dispatch:
44
inputs:
5+
speaker:
6+
description: 'Specify the speaker of the event'
7+
default: ''
8+
required: true
59
post_title:
610
description: 'Used for filename and post.sh name. The space will be replaced by `-` inv the file name.'
711
default: ''
@@ -45,7 +49,7 @@ jobs:
4549
echo "POST<<EOF" >> $GITHUB_ENV
4650
echo "---" >> $GITHUB_ENV
4751
echo "layout: post" >> $GITHUB_ENV
48-
echo "title: \"Event#${{ env.next_event }} ${{ github.event.inputs.post_title }}\"" >> $GITHUB_ENV
52+
echo "title: \"Event#${{ env.next_event }} ${{ github.event.inputs.post_title }} by ${{ github.event.inputs.speaker }}\"" >> $GITHUB_ENV
4953
echo "image: /images/feed.jpg" >> $GITHUB_ENV
5054
echo "tags: [${{ github.event.inputs.tags }}]" >> $GITHUB_ENV
5155
echo "date: $date" >> $GITHUB_ENV

0 commit comments

Comments
 (0)