Skip to content

Add release prep workflow #1090

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 29, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/newfold-prepare-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Newfold Prepare Release

on:
workflow_dispatch:
inputs:
level:
description: 'The level of release to be used.'
type: choice
options:
- 'patch'
- 'minor'
- 'major'
default: 'patch'
required: true
target-branch:
description: 'Target branch to merge the release into.'
type: string
default: 'main'
required: true
source-branch:
description: 'The source branch to be used for the release.'
type: string
default: 'develop'
required: true

# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

jobs:

# This runs the Newfold reusable-plugin-prep-release workflow for this plugin to prepare a release.
prep-release:
name: Prepare Release
permissions:
contents: write
pull-requests: write
uses: newfold-labs/workflows/.github/workflows/reusable-plugin-prep-release.yml@main
with:
plugin-repo: ${{ github.repository }}
plugin-target-branch: ${{ inputs.target-branch }}
plugin-source-branch: ${{ inputs.source-branch }}
level: ${{ inputs.level }}
php-file: 'wp-plugin-hostgator.php'