mirror of
https://github.com/actions/go-versions.git
synced 2025-07-22 23:28:20 +02:00
migrated Go to GA
This commit is contained in:
parent
2873528ad9
commit
a75b0e4ce5
4 changed files with 245 additions and 3 deletions
37
.github/workflows/create-pr.yml
vendored
Normal file
37
.github/workflows/create-pr.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
name: Create Pull Request
|
||||
on:
|
||||
# TODO: currently workflow dispatch endpoint does not work. I will investigate
|
||||
repository_dispatch:
|
||||
types: [create-pr]
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
build:
|
||||
name: Create Pull Request
|
||||
env:
|
||||
REPOSITORY_NAME: 'go-versions'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: true
|
||||
|
||||
- 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"`
|
||||
-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" `
|
||||
-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}"
|
Loading…
Add table
Add a link
Reference in a new issue