Skip to content

Prepare New Release release/2.1.5 from by @jorgemd24 #26

Prepare New Release release/2.1.5 from by @jorgemd24

Prepare New Release release/2.1.5 from by @jorgemd24 #26

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@v4
- name: Create branch & PR
uses: woocommerce/grow/prepare-extension-release@actions-v2
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'
pre-steps: |
1. [ ] Remove older changelog entries from `readme.txt` (keep the last two versions, since we will be adding a third during the release), commit changes.