This commit is contained in:
Nikita Bykov 2020-08-25 14:39:27 +03:00
parent fdef7843ee
commit 5a7abdc250
9 changed files with 15 additions and 181 deletions

View file

@ -13,7 +13,6 @@ on:
env:
VERSION: ${{ github.event.inputs.VERSION }}
defaults:
run:
shell: pwsh
@ -108,12 +107,6 @@ jobs:
run: |
Install-Module Pester -Force -Scope CurrentUser
Import-Module Pester
$pesterParams = @{
Path="./Go.Tests.ps1";
Parameters=@{
Version="$env:VERSION";
}
}
Invoke-Pester -Script ./Go.Tests.ps1 -EnableExit
working-directory: ./tests

View file

@ -1,8 +1,11 @@
name: Create Pull Request
on:
repository_dispatch:
types: [create-pr]
workflow_dispatch:
defaults:
run:
shell: pwsh
jobs:
create_pr:
name: Create Pull Request
@ -13,14 +16,12 @@ jobs:
submodules: true
- name: Create versions-manifest.json
shell: pwsh
run: |
./helpers/packages-generation/manifest-generator.ps1 -RepositoryFullName "$env:GITHUB_REPOSITORY" `
-GitHubAccessToken "${{secrets.GITHUB_TOKEN}}" `
-OutputFile "./versions-manifest.json" `
-ConfigurationFile "./config/go-manifest-config.json"
- name: Create GitHub PR
shell: pwsh
run: |
$formattedDate = Get-Date -Format "MM/dd/yyyy"
./helpers/github/create-pull-request.ps1 `