From ce225de5d3adef1ef1d83a3034c73abeeeb7feef Mon Sep 17 00:00:00 2001 From: Aga Dufrat Date: Tue, 15 Oct 2024 15:45:18 +0100 Subject: [PATCH] Testing something --- .github/workflows/deploy.yml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8788a9ba5..9872d2401 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -33,23 +33,7 @@ jobs: env: ENVIRONMENT: ${{ inputs.environment || 'integration' }} steps: - - name: Check deploy permissions - id: deploy-permissions - env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} - GITHUB_TEAM: gov-uk-production-deploy - GITHUB_USER: ${{ github.triggering_actor }} - TRIGGERING_ACTOR: ${{ github.triggering_actor }} - run: | - TEAM_MEMBERSHIP=$(gh api "orgs/alphagov/teams/$GITHUB_TEAM/memberships/$GITHUB_USER" -q .state || echo false) - - if ! [[ "$TEAM_MEMBERSHIP" = active || "$ENVIRONMENT" = integration ]]; then - echo "::error title=Insufficient permissions to deploy::User $TRIGGERING_ACTOR needs to be a member of the GOV.UK Production Deploy team" - exit 1 - fi - - name: Trigger Argo Workflows - if: steps.deploy-permissions.outcome == 'success' env: IMAGE_TAG: ${{ inputs.imageTag }} REPO_NAME: ${{ inputs.appName }}