Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
github.event_name == 'issue_comment'
&& github.event.issue.pull_request
&& github.event.sender.login == github.event.issue.user.login
&& startsWith(github.event.comment.body, '### ')
&& startsWith(github.event.comment.body, '## 🌈 ')
steps:
- id: comment
shell: bash
Expand All @@ -56,7 +56,9 @@ jobs:
- run: echo '${{ github.event.comment.body }}'
- name: Commit and push if needed
run: |
echo "$(echo '${{ github.event.comment.body }}' | cat - CHANGELOG.md)" > CHANGELOG.md
txt=$(cat CHANGELOG.md)
body='${{ github.event.comment.body }}'
echo "${txt%%##*}${body}${txt##*---}" > CHANGELOG.md
git add .
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
Expand All @@ -73,6 +75,7 @@ jobs:
- uses: actions/checkout@v3
with:
ref: develop
token: ${{ secrets.PERSONAL_TOKEN }}
- name: tag and push if needed
run: |
data=$(cat package.json)
Expand Down
Loading