Prepare New Release release/1.4.8
from by @joelclimbsthings
#7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |