Skip to content

Commit

Permalink
docs: Improve commit messages for gh-pages branch
Browse files Browse the repository at this point in the history
  • Loading branch information
rvl committed Jun 11, 2021
1 parent 9ab47f1 commit a6c68a5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Expand Up @@ -41,13 +41,23 @@ jobs:
uses: actions/checkout@v2

- name: '📸 Build Documentation'
id: build
run: |
if [[ $GITHUB_REF =~ ^refs/tags/v ]]; then
tag="${GITHUB_REF/refs\/tags\//}"
commit_message="Release $tag"
else
tag=""
commit_message="$default_commit_message"
fi
echo "::set-output name=commit_message::$commit_message"
./scripts/gh/update-docs.sh _build $tag
env:
default_commit_message: |
docs: ${{ github.event.head_commit.message }}
Source commit: ${{ github.sha }}
- name: '📘 Publish'
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }}
Expand All @@ -59,7 +69,7 @@ jobs:
keep_files: true
user_name: 'William King Noel Bot'
user_email: 'adrestia@iohk.io'
commit_message: 'docs: ${{ github.event.head_commit.message }}'
full_commit_message: ${{ steps.build.outputs.commit_message }}

bump_sh:
if: startsWith(github.ref, 'refs/tags/v')
Expand Down

0 comments on commit a6c68a5

Please sign in to comment.