Skip to content

Commit

Permalink
chore(actions): fix push and latest tag configs (#1166)
Browse files Browse the repository at this point in the history
  • Loading branch information
vascoalramos authored Nov 23, 2022
1 parent 7f152db commit 96300b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/merge-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
uses: oprypin/[email protected]
with:
repository: ${{ github.repository }}
regex: '^\d+\.\d+\.\d+'
releases-only: false
regex: '^v\d+\.\d+\.\d+'
releases-only: true

- name: Extract semantic version
id: semantic
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/merge-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.ACCESS_TOKEN }}

- name: Calculate changelog path
id: path
Expand All @@ -71,11 +72,11 @@ jobs:
- name: Add changelog to docs
run: |
cd docsrc/source/pages/reference
sed -i -e 's/# \[.*/# Changelog ${{ needs.prepare.outputs.release }}/g' \
-e 's/## Bug Fixes/## 🐛 Bug fixes/g' \
-e 's/## Features/## 🎉 Features/g' \
-e 's/## BREAKING CHANGES/## 🚨 Breaking changes/g' \
-e 's/## Documentation/## 📖 Documentation/g' \
sed -i -e 's/## \[.*/### Changelog ${{ needs.prepare.outputs.release }}/g' \
-e 's/### Bug Fixes/#### 🐛 Bug fixes/g' \
-e 's/### Features/#### 🎉 Features/g' \
-e 's/### BREAKING CHANGES/#### 🚨 Breaking changes/g' \
-e 's/### Documentation/#### 📖 Documentation/g' \
changelog/${{ steps.path.outputs.value }}
grep -q ".. include:: changelog/${{ steps.path.outputs.value }}" changelog.rst || sed -i "4 a\\
Expand All @@ -101,7 +102,6 @@ jobs:
with:
branch: ${{ github.ref }}
github_token: ${{ secrets.ACCESS_TOKEN }}
force: true


prerelease-tag:
Expand Down

0 comments on commit 96300b7

Please sign in to comment.