From 293f0afb82c350bfc0aed9ff508ca197c803e42d Mon Sep 17 00:00:00 2001 From: Riku Rouvila Date: Thu, 2 May 2024 16:42:46 +0300 Subject: [PATCH] fix variable references in reusable pipelines --- .github/workflows/clear-environment.yml | 2 +- .github/workflows/seed-data.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/clear-environment.yml b/.github/workflows/clear-environment.yml index c9d52f21f..39a9038e8 100644 --- a/.github/workflows/clear-environment.yml +++ b/.github/workflows/clear-environment.yml @@ -23,7 +23,7 @@ on: jobs: reset-data: name: 'Reset data' - environment: ${{ github.event.inputs.environment }} + environment: ${{ inputs.environment }} runs-on: ubuntu-20.04 timeout-minutes: 60 outputs: diff --git a/.github/workflows/seed-data.yml b/.github/workflows/seed-data.yml index 8100b81cd..75e96da85 100644 --- a/.github/workflows/seed-data.yml +++ b/.github/workflows/seed-data.yml @@ -1,5 +1,5 @@ name: Seed data -run-name: Seed data to ${{ github.event.inputs.environment }} core=${{ github.event.inputs.core-image-tag }} +run-name: Seed data to ${{ inputs.environment }} core=${{ inputs.core-image-tag }} on: workflow_call: inputs: @@ -25,7 +25,7 @@ on: description: Core DockerHub image tag jobs: seed-data: - environment: ${{ github.event.inputs.environment }} + environment: ${{ inputs.environment }} runs-on: ubuntu-20.04 outputs: outcome: ${{ steps.seed.outcome }} @@ -39,10 +39,10 @@ jobs: path: './opencrvs-core' - name: Set CORE_VERSION from inputs - if: ${{ github.event.inputs.core-image-tag }} + if: ${{ inputs.core-image-tag }} run: | cd opencrvs-core - git checkout ${{ github.event.inputs.core-image-tag }} + git checkout ${{ inputs.core-image-tag }} - name: Install dependencies working-directory: ./opencrvs-core