mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-04-21 17:12:03 +03:00
add support for gist.github.com
This commit is contained in:
parent
aabbfeb2ce
commit
ec00d65c65
9 changed files with 69 additions and 16 deletions
|
@ -117,6 +117,13 @@ describe('input-helper tests', () => {
|
|||
expect(settings.commit).toBeFalsy()
|
||||
})
|
||||
|
||||
it('sets correct default ref/sha for gist', () => {
|
||||
inputs.gist = 'some-owner/some-gist'
|
||||
const settings: IGitSourceSettings = inputHelper.getInputs()
|
||||
expect(settings.ref).toBe('refs/heads/master')
|
||||
expect(settings.commit).toBeFalsy()
|
||||
})
|
||||
|
||||
it('sets ref to empty when explicit sha', () => {
|
||||
inputs.ref = '1111111111222222222233333333334444444444'
|
||||
const settings: IGitSourceSettings = inputHelper.getInputs()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue