-
Notifications
You must be signed in to change notification settings - Fork 8
Automatically deploy to vercel preview in the 'test pull request' git… #956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -22,3 +22,31 @@ | |||||||
| needs: call_build | ||||||||
| uses: ./.github/workflows/cypress_test.yml | ||||||||
| secrets: inherit | ||||||||
|
|
||||||||
| deploy: | ||||||||
| needs: [call_build, ember_test, cypress_test] | ||||||||
| runs-on: ubuntu-latest | ||||||||
| environment: vercel-bracco-preview | ||||||||
jrhoads marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
| env: | ||||||||
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||||||||
jrhoads marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||
| steps: | ||||||||
|
Comment on lines
+33
to
+34
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Verify workflow syntax after the fix
# (run if actionlint is available in your environment)
actionlint -oneline .github/workflows/pull_request.ymlRepository: datacite/bracco Length of output: 215 Remove invalid empty Line 33 declares Fix- env:
steps:📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.11)[error] 33-33: expecting a single ${{...}} expression or mapping value for "env" section, but found plain text node (syntax-check) 🤖 Prompt for AI Agents |
||||||||
| - name: Checkout | ||||||||
| uses: actions/checkout@v4 | ||||||||
|
|
||||||||
| - name: Extract variables | ||||||||
| shell: bash | ||||||||
| run: | | ||||||||
| echo "BRANCH=$(echo ${GITHUB_REF#refs/heads/} | sed 's/\//_/g')" >> $GITHUB_OUTPUT | ||||||||
| echo "GIT_SHA=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT | ||||||||
| echo "GIT_SHA_SHORT=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||||||||
| id: extract_variables | ||||||||
|
|
||||||||
| - name: Vercel deploy staging | ||||||||
| uses: amondnet/vercel-action@v25.1.1 | ||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Resolve the exact commit behind v25.1.1 (read-only)
git ls-remote https://github.com/amondnet/vercel-action refs/tags/v25.1.1 refs/tags/v25.1.1^{}Repository: datacite/bracco Length of output: 117 🏁 Script executed: cat -n .github/workflows/pull_request.yml | sed -n '45,50p'Repository: datacite/bracco Length of output: 294 Pin GitHub Action to commit SHA. Line 47 uses a mutable tag ( Replace with: uses: amondnet/vercel-action@225d234cfe5340ca1f9a6cd158338126b5b6845f🤖 Prompt for AI Agents |
||||||||
| with: | ||||||||
| vercel-token: ${{ secrets.VERCEL_TOKEN }} | ||||||||
| vercel-org-id: ${{ secrets.ORG_ID}} | ||||||||
| vercel-project-id: ${{ secrets.PROJECT_ID}} | ||||||||
| vercel-args: ${{ vars.VERCEL_NOCACHE == 'true' && '--force' || '' }} --build-env HANDLE_SERVER=${{vars.HANDLE_SERVER}} | ||||||||
| scope: ${{ secrets.TEAM_ID}} | ||||||||
| vercel-project-name: 'bracco' | ||||||||
|
||||||||
Uh oh!
There was an error while loading. Please reload this page.