-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #285 from woocommerce/dev/prepare-pr
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
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' | ||
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. |