Skip to content

Commit

Permalink
ci: also allow to manually execute the build
Browse files Browse the repository at this point in the history
  • Loading branch information
JavierCane committed Dec 28, 2023
1 parent df8cd3d commit d08de67
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
name: 📦 Build Docker image and push to Docker Hub

# Workflow triggered manually (GitHub UI) or programmatically by the check-n8n-new-release workflow
on:
workflow_call:
inputs:
n8n_version:
description: 'n8n version to build'
description: 'n8n version to build. Example: 1.20.0'
required: true
type: string
workflow_dispatch:
inputs:
n8n_version:
description: 'n8n version to build. Example: 1.20.0'
required: true
type: string

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-n8n-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ jobs:
build-and-push-new-docker-image:
needs: check-new-release
uses: ./.github/workflows/build-and-push.yml
secrets: inherit
with:
n8n_version: ${{ needs.check-new-release.outputs.n8n_version_to_release }}
secrets: inherit

0 comments on commit d08de67

Please sign in to comment.