Skip to content
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

Action fails even when build succeeds #11

Closed
pkrawc opened this issue Jun 2, 2020 · 6 comments
Closed

Action fails even when build succeeds #11

pkrawc opened this issue Jun 2, 2020 · 6 comments
Labels
Type: Question Further information is requested

Comments

@pkrawc
Copy link

pkrawc commented Jun 2, 2020

Error! Failed to find deployment "https://<url>.now.sh in <team>
##[error]The process '/usr/local/bin/npx' failed with exit code 1

The deployment it was trying to find does actually exist and is here: https://avail-design-site-jsh7mexrg.now.sh/

@amondnet
Copy link
Owner

amondnet commented Jun 4, 2020

@pkrawc
https://github.com/amondnet/vercel-action#inputs

scope : If you are working in a team scope, you should set this value to your team ID.

      - uses: amondnet/vercel-action@v19
        with:
          vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
          github-token: ${{ secrets.GITHUB_TOKEN }} #Optional 
          vercel-args: '--prod' #Optional
          vercel-org-id: ${{ secrets.ORG_ID}}  #Required
          vercel-project-id: ${{ secrets.PROJECT_ID}} #Required 
          working-directory: ./sub-directory
          scope: {{your-team-id}}

@amondnet amondnet added the Type: Question Further information is requested label Jun 4, 2020
@pkrawc
Copy link
Author

pkrawc commented Jun 4, 2020

If I add the scope then the action succeeds doesn't create a new deployment, it links to the last successful deployment.

@amondnet
Copy link
Owner

amondnet commented Jun 4, 2020

Is there any change in files?

https://vercel.com/docs/api#endpoints/deployments/create-a-new-deployment/force-a-new-deployment

Deploying again with the same request would yield the same response, with the same ID and URL due to no differences to the files or configuration.

https://vercel.com/docs/cli#options/global-options/force
The --force option, shorthand -f, is used either to force a deployment where there have been no changes or to forcibly replace an existing local directory.

@pkrawc
Copy link
Author

pkrawc commented Jun 5, 2020

Interesting, I wasn't aware that vercel was doing a checksum on old and new files.

I'll definitely explore this (I potentially didn't have changes to the site as I was trying to push a new deploy) and close this if that's the case.

Thanks for your responses!

@klaasman
Copy link

klaasman commented Jun 9, 2020

I ran into the same issue and can confirm that setting the scope fixed it 👍

@pkrawc
Copy link
Author

pkrawc commented Jun 12, 2020

To close the loop here

My problem was twofold.

  1. I did not have the scope field set initially.
  2. When I did have the scope field set there was no change in the files to deploy. I didn't know there was a check on this so it makes sense not to run a true build for the same files over and over.

Once the scope field was set and there was a change in the build, this action worked perfectly.

@pkrawc pkrawc closed this as completed Jun 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants