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

Add automated build dispatch #55

Merged
merged 1 commit into from
Jan 29, 2025
Merged

Conversation

dragonhunt02
Copy link
Contributor

@dragonhunt02 dragonhunt02 commented Jan 28, 2025

V-Sekai/v-sekai-game#482
Send automated build message to v-sekai-game on world-godot commit.

To enable it, add REPO_DISPATCH to repository secrets. It should be a generated Github Classic Token with all repo permissions enabled.

Edited:

A fine-grained token with Contents: Read and write permission on v-sekai-game repo should be placed in the REPO_DISPATCH named repository secret of V-Sekai/world-godot.

@fire
Copy link
Member

fire commented Jan 29, 2025

What does this do?

@dragonhunt02
Copy link
Contributor Author

dragonhunt02 commented Jan 29, 2025

This sends a workflow dispatch message to target repo.
When it is sent, it runs a workflow in another repo. So when world-godot is updated, message is sent to v-sekai-game repo and v-sekai-game will export binaries with the updated editor and create a nightly release.

Right now this PR lacks a step in world-godot build.yaml, I'll add it later

@dragonhunt02
Copy link
Contributor Author

Also, you can manually send workflow dispatch messages to v-sekai-game from your command line with curl or gh

@dragonhunt02
Copy link
Contributor Author

PR is ready

@fire
Copy link
Member

fire commented Jan 29, 2025

Github Classic Token with all repo permissions enabled.

Can I reduce the permissions used?

@dragonhunt02
Copy link
Contributor Author

dragonhunt02 commented Jan 29, 2025

I had some issues using fine grained tokens...I can run some more tests to check it again

@dragonhunt02
Copy link
Contributor Author

A fine grained token with Contents: Read and write permission on v-sekai-game repo should work

@fire fire merged commit 885c7e5 into V-Sekai:main Jan 29, 2025
17 checks passed
@fire
Copy link
Member

fire commented Jan 29, 2025

Done. Thanks

@fire
Copy link
Member

fire commented Jan 29, 2025

I hope the merge run succeeds!

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

Successfully merging this pull request may close these issues.

2 participants