Skip to content

Commit 2a7982d

Browse files
authored
feat: changelog-entry option (#43)
1 parent 27c5009 commit 2a7982d

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
lines changed

.github/workflows/updater.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,19 @@ on:
77
type: string
88
required: true
99
name:
10-
description: Name used for a changelog entry.
10+
description: Name used in the PR title and the changelog entry.
1111
type: string
1212
required: true
1313
pattern:
1414
description: RegEx pattern that will be matched against available versions when picking the latest one.
1515
type: string
1616
required: false
1717
default: ''
18+
changelog-entry:
19+
description: Whether to add a changelog entry for the update.
20+
type: boolean
21+
required: false
22+
default: true
1823
changelog-section:
1924
description: Section header to attach the changelog entry to.
2025
type: string
@@ -37,25 +42,25 @@ on:
3742
description: 'Internal: specify github-workflows (this repo) revision to use when checking out scripts.'
3843
type: string
3944
required: false
40-
default: v2 # Note: update when publishing a new version
45+
default: v2 # Note: update when publishing a new version
4146
secrets:
4247
api-token:
4348
required: true
4449
outputs:
4550
prUrl:
46-
description: "The created/updated PRs url."
51+
description: 'The created/updated PRs url.'
4752
value: ${{ jobs.update.outputs.prUrl }}
4853
baseBranch:
49-
description: "The base branch name."
54+
description: 'The base branch name.'
5055
value: ${{ jobs.update.outputs.baseBranch }}
5156
prBranch:
52-
description: "The created/updated pr branch name."
57+
description: 'The created/updated pr branch name.'
5358
value: ${{ jobs.update.outputs.prBranch }}
5459
originalTag:
55-
description: "The original tag from which the dependency was updated from."
60+
description: 'The original tag from which the dependency was updated from.'
5661
value: ${{ jobs.update.outputs.originalTag }}
5762
latestTag:
58-
description: "The latest tag to which the dependency was updated to."
63+
description: 'The latest tag to which the dependency was updated to.'
5964
value: ${{ jobs.update.outputs.latestTag }}
6065

6166
jobs:
@@ -231,7 +236,7 @@ jobs:
231236
run: ${{ runner.temp }}/ghwf/updater/scripts/update-dependency.ps1 -Path '${{ inputs.path }}' -Tag '${{ steps.target.outputs.latestTag }}'
232237

233238
- name: Update Changelog
234-
if: steps.target.outputs.latestTag != steps.target.outputs.originalTag
239+
if: ${{ inputs.changelog-entry && ( steps.target.outputs.latestTag != steps.target.outputs.originalTag ) }}
235240
run: |
236241
${{ runner.temp }}/ghwf/updater/scripts/update-changelog.ps1 `
237242
-Name '${{ inputs.name }}' `

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22

3-
## Unreleased
3+
## 2.3.0
4+
5+
### Features
6+
7+
- Updater - add `changelog-entry` option to disable adding a changelog entry ([#43](https://github.com/getsentry/github-workflows/pull/43))
48

59
## 2.2.2
610

@@ -14,7 +18,6 @@
1418

1519
- Support comments when parsing pinned actions in Danger ([#40](https://github.com/getsentry/github-workflows/pull/40))
1620

17-
1821
## 2.2.0
1922

2023
### Features

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,17 @@ jobs:
5353
* `path`: Dependency path in the source repository, this can be either a submodule, a .properties file or a shell script.
5454
* type: string
5555
* required: true
56-
* `name`: Name used for a changelog entry.
56+
* `name`: Name used in the PR title and the changelog entry.
5757
* type: string
5858
* required: true
5959
* `pattern`: RegEx pattern that will be matched against available versions when picking the latest one.
6060
* type: string
6161
* required: false
6262
* default: ''
63+
* `changelog-entry`: Whether to add a changelog entry for the update.
64+
* type: boolean
65+
* required: false
66+
* default: true
6367
* `changelog-section`: Section header to attach the changelog entry to.
6468
* type: string
6569
* required: false

0 commit comments

Comments
 (0)