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

[Bug] account_id in deploy via GitHub to CF Workers #52

Closed
fernandodilland opened this issue Dec 29, 2023 · 4 comments
Closed

[Bug] account_id in deploy via GitHub to CF Workers #52

fernandodilland opened this issue Dec 29, 2023 · 4 comments

Comments

@fernandodilland
Copy link
Contributor

When trying to deploy directly from Github to Cloudflare Workers, When using a Cloudflare account with multiple accounts, it is not defined which account to use, the error appears:

[ERROR] More than one account available but unable to select one in non-interactive mode.
  
    Please set the appropriate `account_id` in your `wrangler.toml` file.
    Available accounts are (`<name>`: `<account_id>`):
      `EXAMPLE-NAME1`: `EXAMPLE-ID1`
      `EXAMPLE-NAME2`: `EXAMPLE-ID2`
      `EXAMPLE-NAME3: `EXAMPLE-ID3`
      ...
@maharjanmilan
Copy link

I have the same issue as well

@fernandodilland fernandodilland changed the title [Bug] account_id in deploy via GitHub to CF Pages [Bug] account_id in deploy via GitHub to CF Workers Jan 5, 2024
@G4brym
Copy link
Owner

G4brym commented Jan 5, 2024

Hey there, i've just pushed a new commit and adds support for defining the account id.
Create a new secret with the name CLOUDFLARE_ACCOUNT_ID and the desired Cloudflare account id. Then sync the fork again.
Let me know if this worked for you

@fernandodilland
Copy link
Contributor Author

I have tried it and it works great! @G4brym

@maharjanmilan
Copy link

wow thanks for the quick update ♥️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants