Skip to content

Commit

Permalink
Verify release manager in prod.yaml for Github workflows on release b…
Browse files Browse the repository at this point in the history
…ranches
  • Loading branch information
Thebinoman committed Mar 1, 2024
1 parent 02efd47 commit 2676967
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@ jobs:
- uses: actions/checkout@v3
- name: Build
run: |
release_manager="Thebinoman"
push_user="${{ github.actor }}"
echo building and packing and app...
if [[ "$push_user" != "$release_manager" ]]; then
echo "Workflow aborted. User $push_user is not authorized for release."
exit 1
else
echo "$push_user is authorized for release."
fi
DeploySimulation:
runs-on: ubuntu-latest
needs: BuildSimulation
Expand Down

0 comments on commit 2676967

Please sign in to comment.