Merge pull request #11 from actions/main

Integrate main back to master to disable scheduling
This commit is contained in:
Maxim Lobanov
2020-07-15 09:12:19 +03:00
committed by GitHub
3 changed files with 6 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v2
- name: Install Pester
shell: pwsh

View File

@@ -6,13 +6,13 @@ schedules:
displayName: First daily build
branches:
include:
- master
- main
always: true
- cron: "0 15 * * *"
displayName: Second daily build
branches:
include:
- master
- main
always: true
variables:

View File

@@ -36,7 +36,7 @@ class GitHubApi
title = $Title
body = $Body
head = $BranchName
base = "master"
base = "main"
} | ConvertTo-Json
$url = "pulls"
@@ -45,7 +45,7 @@ class GitHubApi
[object] GetPullRequest([string]$BranchName, [string]$RepositoryOwner){
$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){
@@ -53,7 +53,7 @@ class GitHubApi
title = $Title
body = $Body
head = $BranchName
base = "master"
base = "main"
} | ConvertTo-Json
$url = "pulls/$PullRequestNumber"