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