diff --git a/.github/workflows/vercelPullRequest.yml b/.github/workflows/vercelPullRequest.yml index 9b2a984..890b717 100644 --- a/.github/workflows/vercelPullRequest.yml +++ b/.github/workflows/vercelPullRequest.yml @@ -1,12 +1,23 @@ name: Create vercel preview URL on pull request on: - pull_request: + pull_request_target: branches: - new jobs: build_and_deploy: runs-on: ubuntu-latest steps: + - uses: trstringer/manual-approval@v1 + timeout-minutes: 240 + with: + secret: ${{ github.TOKEN }} + approvers: thedevyashsaini # GitHub username of the approver + minimum-approvals: 1 + issue-title: "Deploying PR to dev from staging" + issue-body: "Please approve or deny the deployment of this PR." + exclude-workflow-initiator-as-approver: true + additional-approved-words: '' + additional-denied-words: '' - uses: actions/checkout@v4 - uses: amondnet/vercel-action@v25 id: vercel-deploy