Skip to content

release-pr

release-pr #36

Workflow file for this run

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
- 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:
author: "eng-dev-ecosystem-bot <[email protected]>"
committer: "eng-dev-ecosystem-bot <[email protected]>"
token: ${{ secrets.DECO_GITHUB_TOKEN }}
commit-message: Release CLI v${{ github.event.inputs.version }}
body: Release CLI v${{ github.event.inputs.version }}
branch: release-v${{ github.event.inputs.version }}
title: 'Release CLI v${{ github.event.inputs.version }}'
draft: false