ci: Release process improvements (no-changelog) (#5535)

* ci: Switch release workflows to trigger when releases are published (no-changelog)

* ci: Allow creating releases from tags and commits as well
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2023-02-21 16:02:31 +01:00 committed by GitHub
parent f1589d4f0f
commit 35a7856de5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 8 deletions

View file

@ -1,9 +1,8 @@
name: Check Documentation URLs name: Check Documentation URLs
on: on:
push: release:
tags: types: [published]
- n8n@*
schedule: schedule:
- cron: '0 0 * * *' - cron: '0 0 * * *'
workflow_dispatch: workflow_dispatch:

View file

@ -1,9 +1,8 @@
name: Docker Image CI name: Docker Image CI
on: on:
push: release:
tags: types: [published]
- n8n@*
jobs: jobs:
build: build:

View file

@ -4,7 +4,7 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
base-branch: base-branch:
description: 'The branch to create this release PR from.' description: 'The branch, tag, or commit to create this release PR from.'
required: true required: true
default: 'master' default: 'master'
@ -36,7 +36,8 @@ jobs:
- name: Push the base branch - name: Push the base branch
run: | run: |
git push -f origin ${{ github.event.inputs.base-branch }}:"release/${{ github.event.inputs.release-type }}" git checkout -b "release/${{ github.event.inputs.release-type }}"
git push -f origin "release/${{ github.event.inputs.release-type }}"
- uses: pnpm/action-setup@v2.2.4 - uses: pnpm/action-setup@v2.2.4
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3