- introduce updated action specification to try out different configurations of the action

This commit is contained in:
Mike Penz
2020-10-16 16:02:46 +02:00
parent fa3788c8c4
commit 812bb8770d
4 changed files with 52 additions and 10 deletions
+19 -2
View File
@@ -19,6 +19,23 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: ./ - name: "Minimal Configuration"
id: minimal_release
uses: ./
- name: Echo Minimal
run: echo ${{steps.minimal_release.outputs.changelog}}
- name: "Complex Configuration"
id: complex_release
uses: ./
with: with:
milliseconds: 1000 configuration: "configuration_complex.json"
owner: "mikepenz"
repo: "release-changelog-builder-action"
fromTag: "0.0.1"
toTag: "0.0.2"
- name: Echo Complex
run: echo ${{steps.complex_release.outputs.changelog}}
+1
View File
@@ -5,6 +5,7 @@ inputs:
configuration: configuration:
required: true required: true
description: 'path to the configuration file' description: 'path to the configuration file'
default: "configuration.json"
path: path:
description: 'the path to runt his action in' description: 'the path to runt his action in'
owner: owner:
+2 -8
View File
@@ -18,13 +18,7 @@
} }
], ],
"sort": "ASC", "sort": "ASC",
"template": "${{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n${{UNCATEGORIZED}}\n</details>", "template": "${{CHANGELOG}}",
"pr_template": "- ${{TITLE}}\n - PR: #${{NUMBER}}", "pr_template": "- ${{TITLE}}\n - PR: #${{NUMBER}}",
"empty_template": "- no changes", "empty_template": "- no changes"
"transformers": [
{
"pattern": "[\\-\\*] (\\[(...|TEST|CI|SKIP)\\])( )?(.+?)\n(.+?[\\-\\*] )(.+)",
"target": "- $4\n - $6"
}
]
} }
+30
View File
@@ -0,0 +1,30 @@
{
"categories": [
{
"title": "## 🚀 Features",
"labels": ["feature"]
},
{
"title": "## 🦄 Internal Features",
"labels": ["internal"]
},
{
"title": "## 🐛 Fixes",
"labels": ["fix"]
},
{
"title": "## 🧪 Tests",
"labels": ["test"]
}
],
"sort": "ASC",
"template": "${{CHANGELOG}}\n\n<details>\n<summary>Uncategorized</summary>\n\n${{UNCATEGORIZED}}\n</details>",
"pr_template": "- ${{TITLE}}\n - PR: #${{NUMBER}}",
"empty_template": "- no changes",
"transformers": [
{
"pattern": "[\\-\\*] (\\[(...|TEST|CI|SKIP)\\])( )?(.+?)\n(.+?[\\-\\*] )(.+)",
"target": "- $4\n - $6"
}
]
}