File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,8 @@ jobs:
141141 needs : [build, shellcheck]
142142 if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
143143 runs-on : ubuntu-latest
144+ permissions :
145+ contents : write
144146 steps :
145147 - uses : actions/checkout@v2
146148
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ import * as fs from 'fs'
44import { Octokit } from '@octokit/rest'
55
66export default class GenerateReleaseNotes {
7- // five targeted OS/arch combinations
7+ // Eight targeted OS/arch combinations
88 // two files for each targeted OS/arch
99 // two checksum files for the previous
10- private SUCCESSFUL_RELEASE_FILE_COUNT = 5 * 2 * 2
10+ private SUCCESSFUL_RELEASE_FILE_COUNT = 8 * 2 * 2
1111 private args = process . argv . slice ( 2 )
1212 private expectedArgs = [
1313 {
@@ -163,7 +163,7 @@ export default class GenerateReleaseNotes {
163163 const match = mergeCommitRegex . exec ( mergeCommitMessage )
164164 if ( match != null && match . length === 2 ) {
165165 const num = parseInt ( match [ 1 ] )
166- if ( num != NaN ) {
166+ if ( ! Number . isNaN ( num ) ) {
167167 pullRequestIds . push ( num )
168168 }
169169 }
You can’t perform that action at this time.
0 commit comments