Skip to content

Commit

Permalink
Add GH workflow for release PR & checklist
Browse files Browse the repository at this point in the history
  • Loading branch information
tomalec committed Jul 17, 2023
1 parent d8fad3e commit 12f575b
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: 'Prepare New Release'
run-name: Prepare New Release `${{ github.event.inputs.type }}/${{ github.event.inputs.version }}` from by @${{ github.actor }}

# **What it does**: Does release preparation: creates the release branch and the PR with a checklist.
# **Why we have it**: To support devs automating a few manual steps, and to leave a nice reference for consumers.

on:
workflow_dispatch:
inputs:
## In the future we could infer that version from the changelog, or bump it via major|minor|patch.
version:
description: 'Version number to be released'
required: true
type:
description: 'Type of the release (release|hotfix)'
required: true
default: 'release'
wp-version:
description: 'WordPress tested up to'
wc-version:
description: 'WooCommerce tested up to'


jobs:
PrepareRelease:
name: Prepare Release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Create branch & PR
uses: woocommerce/grow/prepare-extension-release@actions-v1
with:
version: ${{ github.event.inputs.version }}
type: ${{ github.event.inputs.type }}
wp-version: ${{ github.event.inputs.wp-version }}
wc-version: ${{ github.event.inputs.wc-version }}
main-branch: 'trunk'

0 comments on commit 12f575b

Please sign in to comment.