node-versions/.github/workflows/create-pr.yml

34 lines
1.4 KiB
YAML
Raw Normal View History

2020-08-19 10:38:27 +00:00
name: Create Pull Request
2020-08-24 08:10:43 +00:00
on:
2020-08-19 10:38:27 +00:00
workflow_dispatch:
2020-08-25 09:14:24 +00:00
defaults:
run:
shell: pwsh
2020-08-19 10:38:27 +00:00
jobs:
2020-08-24 08:10:43 +00:00
create_pr:
2020-08-19 10:38:27 +00:00
name: Create Pull Request
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Create versions-manifest.json
run: |
2020-08-24 08:10:43 +00:00
./helpers/packages-generation/manifest-generator.ps1 -RepositoryFullName "$env:GITHUB_REPOSITORY" `
-GitHubAccessToken "${{secrets.GITHUB_TOKEN}}" `
-OutputFile "./versions-manifest.json" `
2020-08-19 10:38:27 +00:00
-ConfigurationFile "./config/node-manifest-config.json"
- name: Create GitHub PR
run: |
$formattedDate = Get-Date -Format "MM/dd/yyyy"
./helpers/github/create-pull-request.ps1 `
2020-08-24 08:10:43 +00:00
-RepositoryFullName "$env:GITHUB_REPOSITORY" `
2020-08-19 10:38:27 +00:00
-AccessToken "${{secrets.GITHUB_TOKEN}}" `
-BranchName "update-versions-manifest-file" `
-CommitMessage "Update versions-manifest" `
-PullRequestTitle "[versions-manifest] Update for release from ${formattedDate}" `
-PullRequestBody "Update versions-manifest.json for release from ${formattedDate}"