File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,22 +28,22 @@ jobs:
2828 run : echo "RELEASE_VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
2929
3030 - name : Ensure that the version directory exists
31- run : mkdir $RELEASE_VERSION
31+ run : mkdir "${{ github.event.release.tag_name }}"
3232
3333 - name : Convert README.md to HTML and save to the version directory
3434 uses : docker://pandoc/core:latest
3535 with :
3636 args : >-
3737 --from gfm --to html5 --toc --shift-heading-level-by=-1
3838 --template https://raw.githubusercontent.com/linux-system-roles/auto-maintenance/47745a818c7c404bd5eb1ba6efb31e1b29c6bef2/GitHub.html5
39- --output $RELEASE_VERSION /README.html README.md
39+ --output "${{ github.event.release.tag_name }}" /README.html README.md
4040
4141 - name : Commit and push changes
4242 run : |
4343 git config --global user.name "${{ github.actor }}"
4444 git config --global user.email "${{ github.actor }}@users.noreply.github.com"
45- git add $RELEASE_VERSION /README.html
46- git commit -m "Update README.html for the $RELEASE_VERSION release"
45+ git add "${{ github.event.release.tag_name }}" /README.html
46+ git commit -m "Update README.html for the "${{ github.event.release.tag_name }}" release"
4747
4848 - name : Push changes
4949 uses : ad-m/github-push-action@master
You can’t perform that action at this time.
0 commit comments