Skip to content

Commit

Permalink
Pass env variable to vercel from github environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
svogt0511 committed Jan 27, 2024
1 parent bfab6b2 commit aa71a41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/preview-app-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
deploy:
if: ${{ github.event.label.name == 'create preview app' }}
runs-on: ubuntu-latest
environment: vercel-bracco-preview
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
steps:
Expand All @@ -17,7 +18,7 @@ jobs:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.ORG_ID}}
vercel-project-id: ${{ secrets.PROJECT_ID}}
vercel-args: ${{ vars.VERCEL_NOCACHE == 'true' && '--force' || '' }}
vercel-args: ${{ vars.VERCEL_NOCACHE == 'true' && '--force' || '' }} --build-env HANDLE_SERVER=${{vars.HANDLE_SERVER}}
scope: ${{ secrets.TEAM_ID}}
vercel-project-name: 'bracco'
github-comment: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Test Pull Request
on:
# pull_request:
# branches:
# - main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
Expand Down

0 comments on commit aa71a41

Please sign in to comment.