Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/release-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: release-pr

on:
# To allow for manual testing.
workflow_dispatch:
inputs:
version:
type: string
required: true

jobs:
release-pr:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for full checkout if we're making a change on top.


- name: Change to a new version
run: |
echo "${{ github.event.inputs.version }}" > VERSION
sed -i -E "s/VERSION=(.*)/VERSION=\"${{ github.event.inputs.version }}\"/" install.sh

- name: Create a release pull request
id: cpr
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Release CLI version v${{ github.event.inputs.version }}
body: Release CLI version v${{ github.event.inputs.version }}
committer: GitHub <noreply@github.com>
branch: release-v${{ github.event.inputs.version }}
title: 'Release CLI version v${{ github.event.inputs.version }}'
team-reviewers: eng-dev-ecosystem
draft: false