From 74748aa298858a04c5bb467779ab92bcddbc0f03 Mon Sep 17 00:00:00 2001 From: Brage Gording Date: Wed, 16 Apr 2025 12:41:12 +0100 Subject: [PATCH] Approving each deployment is overkill - Move approval into prepare-deployment stage to only approve once --- .github/workflows/deploy-application.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy-application.yml b/.github/workflows/deploy-application.yml index 89c633fae5..27cfc2d222 100644 --- a/.github/workflows/deploy-application.yml +++ b/.github/workflows/deploy-application.yml @@ -46,6 +46,7 @@ jobs: prepare-deployment: name: Prepare deployment runs-on: ubuntu-latest + environment: ${{ inputs.environment }} permissions: id-token: write steps: @@ -85,7 +86,6 @@ jobs: runs-on: ubuntu-latest needs: prepare-deployment if: inputs.server_types == 'web' || inputs.server_types == 'all' - environment: ${{ inputs.environment }} permissions: id-token: write steps: @@ -117,7 +117,6 @@ jobs: runs-on: ubuntu-latest needs: prepare-deployment if: inputs.server_types == 'good-job' || inputs.server_types == 'all' - environment: ${{ inputs.environment }} permissions: id-token: write steps: