ci: Continuous Benchmarking #1053
Workflow file for this run
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: Release Dry Run | |
on: | |
pull_request: | |
branches: [ master ] | |
workflow_dispatch: | |
inputs: | |
type: | |
description: Runs knope with the --dry-run flag to see what the next release would look like. | |
required: true | |
default: prerelease | |
options: | |
- prerelease | |
- release | |
jobs: | |
release-dry-run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install Knope | |
uses: knope-dev/action@v2.0.0 | |
with: | |
version: 0.11.0 # Test before updating, breaking changes likely: https://github.com/knope-dev/action#install-latest-version | |
- name: Prepare Prerelease | |
run: knope prerelease --dry-run | |
if: github.event_name == 'pull_request' | |
- name: Prepare Release | |
run: knope ${{ inputs.type }} --dry-run | |
if: github.event_name == 'workflow_dispatch' |