n8n/.github/workflows/release-version-release-notification.yml
Matsu 4e1e0cd1c0
ci: Add version release notification workflow (#26897)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-11 16:30:19 +00:00

51 lines
1.5 KiB
YAML

name: 'Release: Send version release notification'
run-name: 'Send version release notification for n8n@${{ inputs.version }}'
on:
workflow_dispatch:
inputs:
previous-version:
description: 'The previous release version (e.g. 2.10.2)'
required: true
type: string
version:
description: 'The release version (e.g. 2.11.0)'
required: true
type: string
workflow_call:
inputs:
previous-version:
description: 'The previous release version (e.g. 2.10.2)'
required: true
type: string
version:
description: 'The release version (e.g. 2.11.0)'
required: true
type: string
jobs:
release-notification:
runs-on: ubuntu-slim
environment: release
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Setup Node.js
uses: ./.github/actions/setup-nodejs
with:
build-command: ''
install-command: npm install --prefix=.github/scripts --no-package-lock
- name: Send release notification
env:
N8N_VERSION_RELEASE_NOTIFICATION_DATA: ${{ secrets.N8N_VERSION_RELEASE_NOTIFICATION_DATA }}
PAYLOAD: |
{
"previous_version": "${{ inputs.previous-version }}",
"new_version": "${{ inputs.version }}"
}
run: node ./.github/scripts/send-version-release-notification.mjs