Skip to content

Commit

Permalink
Tag Minor versions but allow for editing release notes at creation
Browse files Browse the repository at this point in the history
  • Loading branch information
hazeltonl authored Jan 7, 2025
1 parent fb9b01a commit 1e7bfb4
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,18 @@
name: "Release"
on:
workflow_dispatch:
inputs:
major:
description: 'MAJOR semantic severity'
required: true
type: string
minor:
description: 'Minor semantic severity'
required: true
type: string
patch:
description: 'patch semantic severity'
required: true
type: string
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: GitHub Release
uses: ncipollo/release-action@v1
with:
tag: v${{ inputs.major }}.${{ inputs.minor }}.${{ inputs.patch }}
allowUpdates: true
generateReleaseNotes: true
- name: Update tags
run: |
git tag -f v${{ inputs.major }}
git tag -f v${{ inputs.major }}.${{ inputs.minor }}
git tag -f v4
git tag -f v4.4
- name: Push changes
uses: ad-m/github-push-action@master
with:
Expand Down

0 comments on commit 1e7bfb4

Please sign in to comment.