From a0746ad2759efad7a0e499e6e7603cf5fe3a67f3 Mon Sep 17 00:00:00 2001 From: Doug Massay Date: Wed, 21 Jul 2021 17:49:39 -0400 Subject: [PATCH] Update blogpost creation [skip-ci] --- .github/workflows/make_blog_post.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/make_blog_post.yml b/.github/workflows/make_blog_post.yml index 15bd680..ca8e56d 100644 --- a/.github/workflows/make_blog_post.yml +++ b/.github/workflows/make_blog_post.yml @@ -9,10 +9,14 @@ jobs: post: runs-on: ubuntu-latest steps: + - name: Get tag name + id: get_tag_name + run: echo ::set-output name=TAGNAME::${GITHUB_REF/refs\/tags\//} + - name: Checkout uses: actions/checkout@v2 with: - ref: ${{ github.head_ref }} + ref: master path: main - name: Checkout website @@ -20,7 +24,7 @@ jobs: with: token: ${{ secrets.ROBO_ACTIONS }} repository: sigil-ebook/sigil-ebook.github.io - ref: ${{ github.head_ref }} + ref: master path: website - name: Get Release details @@ -38,7 +42,7 @@ jobs: commit_user_name: My GitHub Actions Bot commit_user_email: my-github-actions-bot@example.org commit_author: Author - commit_message: Auto create release blog post + commit_message: Auto create ${{ steps.get_tag_name.outputs.TAGNAME }} release blog post branch: master # Trigger sigil-ebook.com to update its version info