updated build-go-packages and create-pr

This commit is contained in:
Nikita Bykov 2020-08-21 14:43:07 +03:00
parent d15dc09dce
commit ac0268361a
2 changed files with 12 additions and 23 deletions

View file

@ -1,14 +1,11 @@
name: Create Pull Request
on:
# TODO: currently workflow dispatch endpoint does not work. I will investigate
on:
repository_dispatch:
types: [create-pr]
workflow_dispatch:
jobs:
build:
create_pr:
name: Create Pull Request
env:
REPOSITORY_NAME: 'go-versions'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@ -18,18 +15,16 @@ jobs:
- name: Create versions-manifest.json
shell: pwsh
run: |
./helpers/packages-generation/manifest-generator.ps1 -GitHubRepositoryOwner "${{github.repository_owner}}" `
-GitHubRepositoryName "$env:REPOSITORY_NAME"`
-GitHubAccessToken "${{secrets.GITHUB_TOKEN}}"`
-OutputFile "./versions-manifest.json"`
./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 `
-RepositoryOwner "${{github.repository_owner}}" `
-RepositoryName "$env:REPOSITORY_NAME" `
-RepositoryFullName "$env:GITHUB_REPOSITORY" `
-AccessToken "${{secrets.GITHUB_TOKEN}}" `
-BranchName "update-versions-manifest-file" `
-CommitMessage "Update versions-manifest" `