Skip to content

Commit

Permalink
remove authorize step, add proper url
Browse files Browse the repository at this point in the history
  • Loading branch information
eliknebel committed Nov 28, 2023
1 parent 07bdf70 commit 6640209
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,12 @@ on:
#

jobs:
authorize-deployment:
runs-on: ubuntu-latest
outputs:
authorized: ${{ steps.check_deployment_authorization.outputs.authorized }}
environment: ${{ github.event.inputs.deploy_target }}
steps:
- name: Verify user is authorized to deploy to target
id: check_deployment_authorization
run: echo "authorized=$(actor="${{ github.triggering_actor }}"; authorized_users="${{ env.AUTHORIZED_DEPLOY_USERS }}"; [[ -z $authorized_users || $authorized_users =~ (^|,)$actor(,|$) ]] && echo "true" || echo "false")" >> $GITHUB_OUTPUT

deployment:
runs-on: ubuntu-latest

needs: [authorize-deployment]
if: needs.authorize-deployment.outputs.authorized == 'true'

environment:
name: ${{ github.event.inputs.deploy_target }}
url: ${{ github.event.inputs.deploy_target }}
url: https://${{ github.event.inputs.deploy_target }}

outputs:
app_version: ${{ steps.info.outputs.app_version }}
Expand Down

0 comments on commit 6640209

Please sign in to comment.