Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/anion0278/mapp
Browse files Browse the repository at this point in the history
  • Loading branch information
anion0278 committed Nov 12, 2021
2 parents 98d8d2f + 73b202f commit 0793f0b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 935 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/changelog_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"categories": [
{
"title": "## 🚀 Features",
"labels": ["enhancement", "feature"]
"labels": ["enhancement", "feature", "feat"]
},
{
"title": "## 🛠️ Minor Changes",
Expand All @@ -14,11 +14,11 @@
},
{
"title": "## 🐛 Fixes",
"labels": ["bug", "fix"]
"labels": ["bug", "fix", "fixed", "fixes"]
},
{
"title": "## 📄 Documentation",
"labels": ["documentation"]
"labels": ["documentation", "doc", "docs"]
},
{
"title": "## 🧪 Tests",
Expand All @@ -38,8 +38,8 @@
}
],
"sort": "ASC",
"template": "Total of ${{CATEGORIZED_COUNT}} new changes since ${{FROM_TAG}}:\n${{CHANGELOG}}\n",
"pr_template": "- ${{BODY}} -> Author: ${{AUTHOR}}",
"template": "New release on ${{MERGED_AT}}\nTotal of ${{CATEGORIZED_COUNT}} new changes since ${{FROM_TAG}}:\n${{CHANGELOG}}\n",
"pr_template": "- ${{BODY}}",
"empty_template": "- No Changes",
"max_pull_requests": 1000,
"max_back_track_time_days": 1000,
Expand Down
22 changes: 7 additions & 15 deletions .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
required: true
default: '2' # minor
release_patch:
description: 'Release - patch number (previous 1)'
description: 'Release - patch number (previous 2)'
required: true
release_name:
description: 'Additional name of the release'
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
run: echo "::set-output name=latest_tag::$(git describe --tags --abbrev=0)"

- name: Generate changelog text
id: changelog
id: changelog_build
uses: mikepenz/release-changelog-builder-action@v2.4.2
with:
configuration: ".github/workflows/changelog_settings.json"
Expand All @@ -85,24 +85,18 @@ jobs:
toTag: ${{ steps.head.outputs.head }}
fromTag: ${{ steps.latest_tag.outputs.latest_tag }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Read CHANGELOG.md
id: package
uses: juliangruber/read-file-action@v1
with:
path: ./CHANGELOG.md

- name: Write to CHANGELOG.md
- name: Append to CHANGELOG.md
uses: DamianReeves/write-file-action@master
with:
path: ./CHANGELOG.md
contents: ${{ steps.changelog.outputs.changelog }}${{ steps.package.outputs.content }}
contents: \n${{ steps.changelog_build.outputs.changelog }}
write-mode: append

- name: Check prerelease version
uses: haya14busa/action-cond@v1
id: condval
with:
id: condval
with: # allows to get actual bool from string
cond: ${{ github.event.inputs.release_suffix != '' }}
if_true: true
if_false: false
Expand All @@ -117,8 +111,6 @@ jobs:

- name: Create Release
uses: ncipollo/release-action@v1
env:
ch: ${{ steps.changelog.outputs.changelog }}
with:
artifacts: "${{env.bin_dir}}${{env.artifact_name}}"
tag: v${{env.release_version}}
Expand All @@ -129,7 +121,7 @@ jobs:
omitName: false
prerelease: ${{steps.condval.outputs.value}}
artifactErrorsFailBuild: true
body: ${{ steps.changelog.outputs.changelog }}
body: ${{ steps.changelog_build.outputs.changelog }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Change default version in workflow
Expand Down
Loading

0 comments on commit 0793f0b

Please sign in to comment.