Skip to content

Commit 7fa21b1

Browse files
committed
- New version-tag-check version used.
- Applied to project's release draft yaml file.
1 parent b336cbd commit 7fa21b1

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

.github/workflows/release_draft.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ on:
2121
tag-name:
2222
description: 'Name of git tag to be created, and then draft release created. Syntax: "v[0-9]+.[0-9]+.[0-9]+".'
2323
required: true
24+
from-tag-name:
25+
description: 'Name of git tag from which to detect changes. Syntax: "v[0-9]+.[0-9]+.[0-9]+".'
26+
required: false
2427

2528
jobs:
2629
release-draft:
@@ -37,20 +40,32 @@ jobs:
3740

3841
- name: Check format of received tag
3942
id: check-version-tag
40-
uses: AbsaOSS/version-tag-check@v0.2.0
43+
uses: AbsaOSS/version-tag-check@v0.3.0
4144
env:
4245
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4346
with:
4447
github-repository: ${{ github.repository }}
4548
version-tag: ${{ github.event.inputs.tag-name }}
4649

50+
- name: Check format of received from tag
51+
if: ${{ github.event.inputs.from-tag-name }}
52+
id: check-version-from-tag
53+
uses: AbsaOSS/[email protected]
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
with:
57+
github-repository: ${{ github.repository }}
58+
version-tag: ${{ github.event.inputs.from-tag-name }}
59+
should-exist: true
60+
4761
- name: Generate Release Notes
4862
id: generate_release_notes
4963
uses: AbsaOSS/generate-release-notes@master
5064
env:
5165
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5266
with:
5367
tag-name: ${{ github.event.inputs.tag-name }}
68+
from-tag-name: ${{ github.event.inputs.from-tag-name }}
5469
chapters: '[
5570
{"title": "No entry 🚫", "label": "duplicate"},
5671
{"title": "No entry 🚫", "label": "invalid"},

examples/release_draft.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
tag-name:
66
description: 'Name of git tag to be created, and then draft release created. Syntax: "v[0-9]+.[0-9]+.[0-9]+".'
77
required: true
8+
from-tag-name:
9+
description: 'Name of git tag from which to detect changes. Syntax: "v[0-9]+.[0-9]+.[0-9]+".'
10+
required: false
811

912
jobs:
1013
release-draft:
@@ -23,21 +26,32 @@ jobs:
2326

2427
- name: Check format of received tag
2528
id: check-version-tag
26-
uses: AbsaOSS/version-tag-check@v0.1.0
29+
uses: AbsaOSS/version-tag-check@v0.3.0
2730
env:
2831
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2932
with:
3033
github-repository: ${{ github.repository }}
31-
branch: 'master'
3234
version-tag: ${{ github.event.inputs.tag-name }}
3335

36+
- name: Check format of received from tag
37+
if: ${{ github.event.inputs.from-tag-name }}
38+
id: check-version-from-tag
39+
uses: AbsaOSS/[email protected]
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
with:
43+
github-repository: ${{ github.repository }}
44+
version-tag: ${{ github.event.inputs.from-tag-name }}
45+
should-exist: true
46+
3447
- name: Generate Release Notes
3548
id: generate_release_notes
3649
uses: AbsaOSS/[email protected]
3750
env:
3851
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3952
with:
4053
tag-name: ${{ github.event.inputs.tag-name }}
54+
from-tag-name: ${{ github.event.inputs.from-tag-name }}
4155
chapters: '[
4256
{"title": "No entry 🚫", "label": "duplicate"},
4357
{"title": "No entry 🚫", "label": "invalid"},

0 commit comments

Comments
 (0)