Skip to content

Commit abd7136

Browse files
committed
finished event number calculation
1 parent 2494707 commit abd7136

2 files changed

Lines changed: 13 additions & 23 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,6 @@ jobs:
2626
env:
2727
FILENAME_PREFIX: ./_posts/$(date +'%Y-%m-%d')-$( echo '${{ github.event.inputs.post_title }}' | sed -r 's/[# ]+/-/g' ).md
2828
MESSAGE: ${{ github.event.inputs.post_body }}
29-
POST: |
30-
---
31-
layout: post
32-
title: \"${{ github.event.inputs.post_title }}\"
33-
image: /images/default.jpg
34-
tags: [${{ github.event.inputs.tags }}]
35-
date: $(date +'%Y-%m-%d %H:%M:%S %z')
36-
video:
37-
---
38-
39-
${{ github.event.inputs.post_body }}
4029
JOIN: Join us next Thursday, at 10:00 ${{ github.event.inputs.room }}
4130
steps:
4231
- name: Checkout repository
@@ -52,18 +41,19 @@ jobs:
5241
5342
- name: Create post
5443
run: |
55-
echo 'POST<<EOF' >> $GITHUB_ENV
56-
echo '---' >> $GITHUB_ENV
57-
echo 'layout: post' >> $GITHUB_ENV
58-
echo 'title: \"${{ github.event.inputs.post_title }}\"' >> $GITHUB_ENV
59-
echo 'image: /images/default.jpg' >> $GITHUB_ENV
60-
echo 'tags: [${{ github.event.inputs.tags }}]' >> $GITHUB_ENV
61-
echo 'date: $(date +'%Y-%m-%d %H:%M:%S %z')' >> $GITHUB_ENV
62-
echo 'video: ' >> $GITHUB_ENV
63-
echo '---' >> $GITHUB_ENV
44+
date=$(date +'%Y-%m-%d %H:%M:%S %z')
45+
echo "POST<<EOF" >> $GITHUB_ENV
46+
echo "---" >> $GITHUB_ENV
47+
echo "layout: post" >> $GITHUB_ENV
48+
echo "title: \"${{ github.event.inputs.post_title }}\"" >> $GITHUB_ENV
49+
echo "image: /images/default.jpg" >> $GITHUB_ENV
50+
echo "tags: [${{ github.event.inputs.tags }}]" >> $GITHUB_ENV
51+
echo "date: $date" >> $GITHUB_ENV
52+
echo "video: " >> $GITHUB_ENV
53+
echo "---" >> $GITHUB_ENV
6454
echo '' >> $GITHUB_ENV
65-
echo '${{ github.event.inputs.post_body }}' >> $GITHUB_ENV
66-
echo 'EOF' >> $GITHUB_ENV
55+
echo "${{ github.event.inputs.post_body }}" >> $GITHUB_ENV
56+
echo "EOF" >> $GITHUB_ENV
6757
6858
- name: Create post file
6959
run: |

‎.github/workflows/build_test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
echo "---" >> $GITHUB_ENV
6767
echo '' >> $GITHUB_ENV
6868
echo "${{ github.event.inputs.post_body }}" >> $GITHUB_ENV
69-
echo "EOF" >> $GITHUB_ENV
69+
echo "EOF" >> $GITHUB_ENV
7070
7171
- name: Create post file
7272
run: |

0 commit comments

Comments
 (0)