From bbc9f68ff5009dfcf6e84dc60cdbe3cc3f2a88b3 Mon Sep 17 00:00:00 2001 From: curquiza Date: Mon, 19 Jun 2023 18:49:15 +0200 Subject: [PATCH] Use the input from the previous job instead of the workflow dispatch --- .github/workflows/sdks-tests.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/sdks-tests.yml b/.github/workflows/sdks-tests.yml index f625ab333..78c45f1b2 100644 --- a/.github/workflows/sdks-tests.yml +++ b/.github/workflows/sdks-tests.yml @@ -25,7 +25,7 @@ jobs: - name: Define the Docker image we need to use id: define-image run: | - event=${{ github.event.action }} + event=${{ github.event_name }} echo "docker-image=nightly" >> $GITHUB_OUTPUT if [[ $event == 'workflow_dispatch' ]]; then echo "docker-image=${{ github.event.inputs.docker_image }}" >> $GITHUB_OUTPUT @@ -37,7 +37,7 @@ jobs: runs-on: ubuntu-latest services: meilisearch: - image: getmeili/meilisearch:${{ github.event.inputs.docker_image }} + image: getmeili/meilisearch:${{ needs.define-docker-image.outputs.docker-image }} env: MEILI_MASTER_KEY: ${{ env.MEILI_MASTER_KEY }} MEILI_NO_ANALYTICS: ${{ env.MEILI_NO_ANALYTICS }} @@ -72,7 +72,7 @@ jobs: runs-on: ubuntu-latest services: meilisearch: - image: getmeili/meilisearch:${{ github.event.inputs.docker_image }} + image: getmeili/meilisearch:${{ needs.define-docker-image.outputs.docker-image }} env: MEILI_MASTER_KEY: ${{ env.MEILI_MASTER_KEY }} MEILI_NO_ANALYTICS: ${{ env.MEILI_NO_ANALYTICS }} @@ -99,7 +99,7 @@ jobs: runs-on: ubuntu-latest services: meilisearch: - image: getmeili/meilisearch:${{ github.event.inputs.docker_image }} + image: getmeili/meilisearch:${{ needs.define-docker-image.outputs.docker-image }} env: MEILI_MASTER_KEY: ${{ env.MEILI_MASTER_KEY }} MEILI_NO_ANALYTICS: ${{ env.MEILI_NO_ANALYTICS }} @@ -130,7 +130,7 @@ jobs: runs-on: ubuntu-latest services: meilisearch: - image: getmeili/meilisearch:${{ github.event.inputs.docker_image }} + image: getmeili/meilisearch:${{ needs.define-docker-image.outputs.docker-image }} env: MEILI_MASTER_KEY: ${{ env.MEILI_MASTER_KEY }} MEILI_NO_ANALYTICS: ${{ env.MEILI_NO_ANALYTICS }} @@ -155,7 +155,7 @@ jobs: runs-on: ubuntu-latest services: meilisearch: - image: getmeili/meilisearch:${{ github.event.inputs.docker_image }} + image: getmeili/meilisearch:${{ needs.define-docker-image.outputs.docker-image }} env: MEILI_MASTER_KEY: ${{ env.MEILI_MASTER_KEY }} MEILI_NO_ANALYTICS: ${{ env.MEILI_NO_ANALYTICS }} @@ -185,7 +185,7 @@ jobs: runs-on: ubuntu-latest services: meilisearch: - image: getmeili/meilisearch:${{ github.event.inputs.docker_image }} + image: getmeili/meilisearch:${{ needs.define-docker-image.outputs.docker-image }} env: MEILI_MASTER_KEY: ${{ env.MEILI_MASTER_KEY }} MEILI_NO_ANALYTICS: ${{ env.MEILI_NO_ANALYTICS }} @@ -210,7 +210,7 @@ jobs: runs-on: ubuntu-latest services: meilisearch: - image: getmeili/meilisearch:${{ github.event.inputs.docker_image }} + image: getmeili/meilisearch:${{ needs.define-docker-image.outputs.docker-image }} env: MEILI_MASTER_KEY: ${{ env.MEILI_MASTER_KEY }} MEILI_NO_ANALYTICS: ${{ env.MEILI_NO_ANALYTICS }}