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
GitHub Action in this repo that updates simonw/datasette-plugin-template-demo #4
Comments
This should happen on every push to main. |
I have this working now in that it generates the correct set of files here: Next step: push those files to the https://github.com/simonw/datasette-plugin-template-demo repo. |
This is a bit tricky: I want to completely over-write the existing repo contents with the newly generated files, deleting any files that are missing and adding any new ones - all represented by a single commit. The commit message should link back to the commit in this |
I think |
I think |
Possibly easier: |
And to commit but only if it changed:
|
I might need to do this to be able to push to the repo:
From https://github.com/actions/checkout#checkout-multiple-repos-private |
Using a personal access token like this should work:
|
I created a token for this: https://github.com/settings/tokens/444691620 - with repo access, called "Push to simonw/datasette-plugin-template-demo" |
Added that secret to this repo as |
This works now! simonw/datasette-plugin-template-demo@2de806a It would be cool if it posted a comment on the commit in the Here's a recipe for posting a commit comment from https://stackoverflow.com/a/58469094:
|
|
|
It works, and it adds the comment! acd7aee |
Would be cool if this repo updated its own demo.
The text was updated successfully, but these errors were encountered: