From d6d7b1ee4d8ff01906209e3a1e852a81415a2e2c Mon Sep 17 00:00:00 2001 From: Alexey Palazhchenko Date: Thu, 22 Aug 2024 11:34:27 +0400 Subject: [PATCH] Add `workflow_dispatch` trigger --- .github/workflows/dance.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dance.yml b/.github/workflows/dance.yml index 8dadfc65..d00309df 100644 --- a/.github/workflows/dance.yml +++ b/.github/workflows/dance.yml @@ -12,6 +12,16 @@ on: - main schedule: - cron: "12 3 * * *" # after FerretDB's Docker workflow + workflow_dispatch: + inputs: + ferretdb_image: + description: FerretDB Docker image + default: ghcr.io/ferretdb/ferretdb-dev:main + required: false + postgres_image: + description: PostgreSQL Docker image + default: postgres:16.4 + required: false env: GOPATH: /home/runner/go @@ -89,8 +99,8 @@ jobs: - name: Start environment run: bin/task env-up-detach DB=${{ matrix.db }} env: - FERRETDB_IMAGE: ghcr.io/ferretdb/ferretdb-dev:main - POSTGRES_IMAGE: postgres:16.4 + FERRETDB_IMAGE: ${{ inputs.ferretdb_image }} + POSTGRES_IMAGE: ${{ inputs.postgres_image }} - name: Run init run: bin/task init