Comments (6)
I was thinking about granularly saying what was the issue, but, yeah, one single catchall error message like "please enable the repo and make an initial page" would probably be good enough.
Nitpick: we might try checking if the repo exists in a separate step.
This is because I just generally prefer a doThing if valid else fail
pattern to try doThing catch fail
. Though I'll admit this is more nitpicky, and not that related to performance, when bash scripting.
from actions-wiki.
Doesn't really matter
I notice a lot of code issue things are piling up, so I guess it's time to actually do #23 and get on it
from actions-wiki.
I think this is overdue:
@all-contributors add @jcbhmr for ideas
from actions-wiki.
Just double-checked since I thought it was pretty weird that the repository doesn't even exist until the initial page is created.
Once you've created an initial page on GitHub, you can clone the repository
We can at least use a GraphQL query to detect if the wiki is enabled (it can probably be gotten from the REST API, too).
I was hoping to be able to automatically create the initial page
Apparently there aren't any API endpoints, either, from my quick search, to create an initial page.
from actions-wiki.
I don't even think you need to do that! You can just git <whatever> | grep -i 'remote: repository not found'
and if it matches, you know that the repo wasn't found, therefore, show a more informative error message.
from actions-wiki.
I've put up a pull request to add @jcbhmr!
from actions-wiki.
Related Issues (20)
- Consider splitting action.yml Bash script into its own file HOT 4
- Consider using git subtree HOT 10
- Consider using an auto-tag release bot HOT 6
- Consider renaming to "spenserblack/publish-wiki-action" HOT 5
- Enable discussions on this repo HOT 3
- Publish v0 tag HOT 4
- Use ${{ github.token }} in our dogfood test HOT 9
- Split inline bash code into own script(s) HOT 3
- Add a devcontainer config file
- Fails when there's nothing to do HOT 2
- Add CONTRIBUTING.md HOT 2
- Add a header image to readme HOT 2
- How does this compare to newrelic/wiki-sync-action? HOT 7
- Add workflow extension to devcontainer
- Add README.txt or something for locally cloned wikis HOT 4
- Support ignoring files in the wiki folder HOT 3
- Do you actually need a user-generated GitHub PAT? HOT 7
- Would you be interested in consolidating with Andrew-Chen-Wang/github-wiki-action ? HOT 3
- Improve readme HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actions-wiki.