1
0
Fork 0
mirror of https://github.com/actions/toolkit synced 2025-05-09 00:22:56 +00:00

Set main as the default branch (#527)

* set main as the default branch

* revert change to tool-cache default branch

* use versions where applicable
This commit is contained in:
Thomas Boop 2020-07-21 11:33:05 -04:00 committed by GitHub
parent cb18a3df6b
commit ccad19055e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 42 additions and 42 deletions

View file

@ -48,9 +48,9 @@ describe('@actions/github', () => {
const branch = await octokit.repos.getBranch({
owner: 'actions',
repo: 'toolkit',
branch: 'master'
branch: 'main'
})
expect(branch.data.name).toBe('master')
expect(branch.data.name).toBe('main')
expect(proxyConnects).toHaveLength(0)
})
@ -63,9 +63,9 @@ describe('@actions/github', () => {
const branch = await octokit.repos.getBranch({
owner: 'actions',
repo: 'toolkit',
branch: 'master'
branch: 'main'
})
expect(branch.data.name).toBe('master')
expect(branch.data.name).toBe('main')
expect(proxyConnects).toHaveLength(0)
})
@ -80,9 +80,9 @@ describe('@actions/github', () => {
const branch = await octokit.repos.getBranch({
owner: 'actions',
repo: 'toolkit',
branch: 'master'
branch: 'main'
})
expect(branch.data.name).toBe('master')
expect(branch.data.name).toBe('main')
expect(proxyConnects).toHaveLength(0)
// Invalid token
@ -92,7 +92,7 @@ describe('@actions/github', () => {
await octokit.repos.getBranch({
owner: 'actions',
repo: 'toolkit',
branch: 'master'
branch: 'main'
})
} catch (err) {
failed = true