Skip to content

Commit

Permalink
Testing something
Browse files Browse the repository at this point in the history
  • Loading branch information
AgaDufrat committed Oct 15, 2024
1 parent f645ad6 commit ce225de
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit ce225de

Please sign in to comment.