From 5bbef050cb510477b7077c98eb8664b9d22e5e4e Mon Sep 17 00:00:00 2001 From: Jay Malhotra Date: Wed, 14 Aug 2024 23:36:00 +0100 Subject: [PATCH] Fix variable index conflicts --- .github/workflows/deploy.yaml | 2 +- .github/workflows/publish-api.yaml | 1 + .github/workflows/publish-statemanager.yaml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index c6c1fafb7..91c5604f1 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -35,6 +35,6 @@ jobs: export NOMAD_ADDR="https://10.0.0.2:4646" export NOMAD_CACERT="/srv/certs/cluster-agent-ca.pem" export NOMAD_TOKEN="${{ secrets.NOMAD_TOKEN }}" - nomad var put nomad/jobs/${{ vars.JOB_NAME }}/ version="${{ inputs.version }}" + nomad var get nomad/jobs/${{ vars.JOB_NAME }}/ | nomad var put -out json - version="${{ inputs.version }}" cd "${{ vars.JOB_DIRECTORY }}" nomad job run "${{ vars.JOB_FILE_NAME }}" diff --git a/.github/workflows/publish-api.yaml b/.github/workflows/publish-api.yaml index 55330bc5b..2bec22c0a 100644 --- a/.github/workflows/publish-api.yaml +++ b/.github/workflows/publish-api.yaml @@ -9,6 +9,7 @@ on: - Shared/** - Directory.Packages.props - .github/workflows/publish-api.yaml + - .github/workflows/deploy.yaml - .github/workflows/build.yaml env: diff --git a/.github/workflows/publish-statemanager.yaml b/.github/workflows/publish-statemanager.yaml index a9166b649..93c91d60c 100644 --- a/.github/workflows/publish-statemanager.yaml +++ b/.github/workflows/publish-statemanager.yaml @@ -9,6 +9,7 @@ on: - Shared/** - Directory.Packages.props - .github/workflows/publish-statemanager.yaml + - .github/workflows/deploy.yaml - .github/workflows/build.yaml env: