Skip to content

Commit

Permalink
use full knope-action version; add dry-run to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
BatmanAoD committed Sep 16, 2024
1 parent 5a755e2 commit 4db0832
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
inputs:
type:
Expand All @@ -25,12 +28,15 @@ jobs:
fetch-depth: 0
token: ${{ secrets.PAT }}
- name: Install Knope
uses: knope-dev/action@v2
uses: knope-dev/action@v2.0.0
with:
version: 0.16.0 # Test before updating, breaking changes likely: https://github.com/knope-dev/action#install-latest-version
- run: |
git config --global user.name "${{ github.triggering_actor }}"
git config --global user.email "${{ github.triggering_actor}}@users.noreply.github.com"
- name: Dry-run Release
run: knope release --verbose --dry-run
if: github.event_name == 'pull_request'
- name: Prepare Prerelease
run: knope release --verbose --prerelease-label=rc
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.type == 'prerelease')
Expand Down

0 comments on commit 4db0832

Please sign in to comment.