From 1425a6368adf1aea5e4081df99a2e19d76ada067 Mon Sep 17 00:00:00 2001 From: Matt DiMeglio Date: Thu, 12 Jun 2025 16:18:17 -0400 Subject: [PATCH] Add current_version --- .github/workflows/web-container.yml | 1 + .github/workflows/web-deploy-prod.yml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/web-container.yml b/.github/workflows/web-container.yml index 339d4c8..45b9e56 100644 --- a/.github/workflows/web-container.yml +++ b/.github/workflows/web-container.yml @@ -82,6 +82,7 @@ jobs: environments: ${{ matrix.env }} workflow_type: ${{ needs.determine-workflow.outputs.workflow_type }} branch: ${{ github.head_ref || github.ref_name }} + current_version: ${{ needs.determine-workflow.outputs.current_version }} secrets: DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }} DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} diff --git a/.github/workflows/web-deploy-prod.yml b/.github/workflows/web-deploy-prod.yml index 09152e9..8b1c638 100644 --- a/.github/workflows/web-deploy-prod.yml +++ b/.github/workflows/web-deploy-prod.yml @@ -14,6 +14,10 @@ on: type: string description: An optional string to define which branch to checkout. default: 'main' + current_version: + type: string + description: Current Version of the package.json. + default: '0.0.0' secrets: DOCKERHUB_USER: {} DOCKERHUB_TOKEN: {} @@ -51,6 +55,7 @@ jobs: else echo "DOCKERHUB_TOKEN secret is set" fi + echo "${{inputs.current_version}}" build: needs: check-inputs if: needs.check-inputs.result == 'success' && inputs.workflow_type == 'release'