diff --git a/.github/workflows/prod.yaml b/.github/workflows/prod.yaml index bd34634..1d3ff72 100644 --- a/.github/workflows/prod.yaml +++ b/.github/workflows/prod.yaml @@ -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