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: