From 35a7856de5dac7592184bb2c37a105a6d8d6a8b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Tue, 21 Feb 2023 16:02:31 +0100 Subject: [PATCH] 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 --- .github/workflows/check-documentation-urls.yml | 5 ++--- .github/workflows/docker-images.yml | 5 ++--- .github/workflows/release-create-pr.yml | 5 +++-- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/check-documentation-urls.yml b/.github/workflows/check-documentation-urls.yml index c8e405457..6e352d201 100644 --- a/.github/workflows/check-documentation-urls.yml +++ b/.github/workflows/check-documentation-urls.yml @@ -1,9 +1,8 @@ name: Check Documentation URLs on: - push: - tags: - - n8n@* + release: + types: [published] schedule: - cron: '0 0 * * *' workflow_dispatch: diff --git a/.github/workflows/docker-images.yml b/.github/workflows/docker-images.yml index 5d79fba12..ad40b97d9 100644 --- a/.github/workflows/docker-images.yml +++ b/.github/workflows/docker-images.yml @@ -1,9 +1,8 @@ name: Docker Image CI on: - push: - tags: - - n8n@* + release: + types: [published] jobs: build: diff --git a/.github/workflows/release-create-pr.yml b/.github/workflows/release-create-pr.yml index 1a4e5668a..cb0f359f4 100644 --- a/.github/workflows/release-create-pr.yml +++ b/.github/workflows/release-create-pr.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: inputs: 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 default: 'master' @@ -36,7 +36,8 @@ jobs: - name: Push the base branch 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: actions/setup-node@v3