mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-10 11:41:23 +00:00
Switch from master branch to main
This commit is contained in:
2
.github/workflows/common_tests.yml
vendored
2
.github/workflows/common_tests.yml
vendored
@@ -7,7 +7,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Install Pester
|
- name: Install Pester
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|||||||
@@ -6,13 +6,13 @@ schedules:
|
|||||||
displayName: First daily build
|
displayName: First daily build
|
||||||
branches:
|
branches:
|
||||||
include:
|
include:
|
||||||
- master
|
- main
|
||||||
always: true
|
always: true
|
||||||
- cron: "0 15 * * *"
|
- cron: "0 15 * * *"
|
||||||
displayName: Second daily build
|
displayName: Second daily build
|
||||||
branches:
|
branches:
|
||||||
include:
|
include:
|
||||||
- master
|
- main
|
||||||
always: true
|
always: true
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ class GitHubApi
|
|||||||
title = $Title
|
title = $Title
|
||||||
body = $Body
|
body = $Body
|
||||||
head = $BranchName
|
head = $BranchName
|
||||||
base = "master"
|
base = "main"
|
||||||
} | ConvertTo-Json
|
} | ConvertTo-Json
|
||||||
|
|
||||||
$url = "pulls"
|
$url = "pulls"
|
||||||
@@ -45,7 +45,7 @@ class GitHubApi
|
|||||||
|
|
||||||
[object] GetPullRequest([string]$BranchName, [string]$RepositoryOwner){
|
[object] GetPullRequest([string]$BranchName, [string]$RepositoryOwner){
|
||||||
$url = "pulls"
|
$url = "pulls"
|
||||||
return $this.InvokeRestMethod($url, 'GET', "head=${RepositoryOwner}:$BranchName&base=master", $null)
|
return $this.InvokeRestMethod($url, 'GET', "head=${RepositoryOwner}:$BranchName&base=main", $null)
|
||||||
}
|
}
|
||||||
|
|
||||||
[object] UpdatePullRequest([string]$Title, [string]$Body, [string]$BranchName, [string]$PullRequestNumber){
|
[object] UpdatePullRequest([string]$Title, [string]$Body, [string]$BranchName, [string]$PullRequestNumber){
|
||||||
@@ -53,7 +53,7 @@ class GitHubApi
|
|||||||
title = $Title
|
title = $Title
|
||||||
body = $Body
|
body = $Body
|
||||||
head = $BranchName
|
head = $BranchName
|
||||||
base = "master"
|
base = "main"
|
||||||
} | ConvertTo-Json
|
} | ConvertTo-Json
|
||||||
|
|
||||||
$url = "pulls/$PullRequestNumber"
|
$url = "pulls/$PullRequestNumber"
|
||||||
|
|||||||
Reference in New Issue
Block a user