Skip to content

Commit b982613

Browse files
committed
Update release prep action
Rename the action to "Release Prep" (better matches what it does) and also provide an optional input value which can be used to supply a GitHub personal access token, in order to avoid throttled API request to GitHub when using github-changelog-generator.
1 parent 3177e73 commit b982613

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/auto_release.yml renamed to .github/workflows/release_prep.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
name: "Auto release"
1+
name: "Release Prep"
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
personal_access_token:
7+
description: 'GitHub Personal Access Token'
8+
required: false
59

610
env:
711
HONEYCOMB_WRITEKEY: 7f3c63a70eecc61d635917de46bea4e6
812
HONEYCOMB_DATASET: litmus tests
9-
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1013

1114
jobs:
1215
auto_release:
@@ -38,7 +41,7 @@ jobs:
3841
with:
3942
args: 'release prep --force'
4043
env:
41-
CHANGELOG_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
CHANGELOG_GITHUB_TOKEN: "${{ github.event.inputs.personal_access_token }}"
4245

4346
- name: "Get Version"
4447
if: ${{ github.repository_owner == 'puppetlabs' }}

0 commit comments

Comments
 (0)