From 683a9a01455a75d5f94c7b017b62a52ecb347831 Mon Sep 17 00:00:00 2001 From: Are Almaas Date: Tue, 1 Oct 2024 16:57:24 +0200 Subject: [PATCH] cleanup --- .github/workflows/action-deploy-apps.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/action-deploy-apps.yml b/.github/workflows/action-deploy-apps.yml index 95c9526a8..79a87e76f 100644 --- a/.github/workflows/action-deploy-apps.yml +++ b/.github/workflows/action-deploy-apps.yml @@ -149,6 +149,8 @@ jobs: permissions: id-token: write contents: read + env: + REVISION_SUFFIX: "${{ github.run_id }}-${{ inputs.version }}-${{ github.run_attempt}}" steps: - name: "Checkout GitHub Action" uses: actions/checkout@v4 @@ -166,7 +168,7 @@ jobs: env: # parameters IMAGE_TAG: ${{ inputs.version }} - REVISION_SUFFIX: "${{ github.run_id }}-${{ inputs.version }}-${{ github.run_attempt}}" + REVISION_SUFFIX: ${{ env.REVISION_SUFFIX }} # secrets AZURE_CONTAINER_APP_ENVIRONMENT_NAME: ${{ secrets.AZURE_CONTAINER_APP_ENVIRONMENT_NAME }} AZURE_APP_INSIGHTS_CONNECTION_STRING: ${{ secrets.AZURE_APP_INSIGHTS_CONNECTION_STRING }} @@ -190,7 +192,7 @@ jobs: env: # parameters IMAGE_TAG: ${{ inputs.version }} - REVISION_SUFFIX: "${{ github.run_id }}-${{ inputs.version }}-${{ github.run_attempt}}" + REVISION_SUFFIX: ${{ env.REVISION_SUFFIX }} # secrets AZURE_CONTAINER_APP_ENVIRONMENT_NAME: ${{ secrets.AZURE_CONTAINER_APP_ENVIRONMENT_NAME }} AZURE_APP_INSIGHTS_CONNECTION_STRING: ${{ secrets.AZURE_APP_INSIGHTS_CONNECTION_STRING }}