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

Deploy from master branch to other master branch #318

Closed
klakegg opened this issue May 22, 2020 · 3 comments
Closed

Deploy from master branch to other master branch #318

klakegg opened this issue May 22, 2020 · 3 comments
Assignees
Labels

Comments

@klakegg
Copy link

klakegg commented May 22, 2020

Describe the bug

Deployment from master branch of one repo to master branch of other repo failes with the following error:

##[error]Action failed with "You deploy from master to master"

To Reproduce

      - uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.SUPER_GITHUB_TOKEN }}
          external_repository: [other repo]
          publish_dir: target/site
          publish_branch: master

Expected behavior

Allow deploying to other masterbranch when external_repository is set.

Your YAML file

See above.

@klakegg klakegg added the bug Something isn't working label May 22, 2020
@peaceiris
Copy link
Owner

peaceiris commented May 22, 2020

cf. README.md

You can use deploy_key or personal_token. When you use deploy_key, set your private key to the repository which includes this action and set your public key to your external repository.

Be careful, GITHUB_TOKEN has no permission to access to external repositories.

You need to change your YAML file as follows.

- github_token: ${{ secrets.SUPER_GITHUB_TOKEN }}
+ personal_token: ${{ secrets.SUPER_GITHUB_TOKEN }}

@peaceiris peaceiris added support User support and removed bug Something isn't working labels May 22, 2020
@klakegg
Copy link
Author

klakegg commented May 22, 2020

Thank you. 😄

@github-actions
Copy link
Contributor

This issue has been LOCKED because of it being resolved!

The issue has been fixed and is therefore considered resolved.
If you still encounter this or it has changed, open a new issue instead of responding to solved ones.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants