|
7 | 7 | type: string
|
8 | 8 | required: true
|
9 | 9 | name:
|
10 |
| - description: Name used for a changelog entry. |
| 10 | + description: Name used in the PR title and the changelog entry. |
11 | 11 | type: string
|
12 | 12 | required: true
|
13 | 13 | pattern:
|
14 | 14 | description: RegEx pattern that will be matched against available versions when picking the latest one.
|
15 | 15 | type: string
|
16 | 16 | required: false
|
17 | 17 | default: ''
|
| 18 | + changelog-entry: |
| 19 | + description: Whether to add a changelog entry for the update. |
| 20 | + type: boolean |
| 21 | + required: false |
| 22 | + default: true |
18 | 23 | changelog-section:
|
19 | 24 | description: Section header to attach the changelog entry to.
|
20 | 25 | type: string
|
|
37 | 42 | description: 'Internal: specify github-workflows (this repo) revision to use when checking out scripts.'
|
38 | 43 | type: string
|
39 | 44 | required: false
|
40 |
| - default: v2 # Note: update when publishing a new version |
| 45 | + default: v2 # Note: update when publishing a new version |
41 | 46 | secrets:
|
42 | 47 | api-token:
|
43 | 48 | required: true
|
44 | 49 | outputs:
|
45 | 50 | prUrl:
|
46 |
| - description: "The created/updated PRs url." |
| 51 | + description: 'The created/updated PRs url.' |
47 | 52 | value: ${{ jobs.update.outputs.prUrl }}
|
48 | 53 | baseBranch:
|
49 |
| - description: "The base branch name." |
| 54 | + description: 'The base branch name.' |
50 | 55 | value: ${{ jobs.update.outputs.baseBranch }}
|
51 | 56 | prBranch:
|
52 |
| - description: "The created/updated pr branch name." |
| 57 | + description: 'The created/updated pr branch name.' |
53 | 58 | value: ${{ jobs.update.outputs.prBranch }}
|
54 | 59 | 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.' |
56 | 61 | value: ${{ jobs.update.outputs.originalTag }}
|
57 | 62 | 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.' |
59 | 64 | value: ${{ jobs.update.outputs.latestTag }}
|
60 | 65 |
|
61 | 66 | jobs:
|
@@ -231,7 +236,7 @@ jobs:
|
231 | 236 | run: ${{ runner.temp }}/ghwf/updater/scripts/update-dependency.ps1 -Path '${{ inputs.path }}' -Tag '${{ steps.target.outputs.latestTag }}'
|
232 | 237 |
|
233 | 238 | - 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 ) }} |
235 | 240 | run: |
|
236 | 241 | ${{ runner.temp }}/ghwf/updater/scripts/update-changelog.ps1 `
|
237 | 242 | -Name '${{ inputs.name }}' `
|
|
0 commit comments