Fixes #219 Add argument to allow only updating drafts and prereleases

This commit is contained in:
Nick Cipollo
2022-10-02 16:31:41 -04:00
committed by Nick Cipollo
parent fc324198c9
commit 5b3ed26ce2
14 changed files with 192 additions and 7 deletions

View File

@@ -430,6 +430,17 @@ describe('Inputs', () => {
})
})
describe('updateOnlyUnreleased', () => {
it('returns false', () => {
expect(inputs.updateOnlyUnreleased).toBe(false)
})
it('returns true', () => {
mockGetInput.mockReturnValueOnce('true')
expect(inputs.updateOnlyUnreleased).toBe(true)
})
})
function createGlobber(): ArtifactGlobber {
const MockGlobber = jest.fn<ArtifactGlobber, any>(() => {
return {