Commit 9cfa382
src/main.ts
@@ -25,7 +25,7 @@ void (async function main() {
size,
dryrun,
} = argv
- const [owner, repo] = repository?.split('/', 2) || []
+ const [owner, repo] = repository?.split('/', 2) || [username, username]
const MyOctokit = Octokit.plugin(retry, throttling)
const octokit = new MyOctokit({
src/utils.ts
@@ -38,6 +38,8 @@ export const upload = async (
await fs.mkdir(path.dirname(filepath), { recursive: true })
await fs.writeFile(filepath, data?.content as string)
+
+ return
}
console.log(`Uploading ${data?.path}`)
README.md
@@ -90,14 +90,14 @@ jobs:
- Start **my-badges** workflow, or wait for it to run automatically.
## Configuration
-| Param | ENV alias | Description | Default |
-|----------|----------------|-------------------------------------------------------------------------------------------|---------|
-| `token` | `GITHUB_TOKEN` | Auth token | |
-| `user` | `GITHUB_USER` | Username | |
-| `repo` | `GITHUB_REPO` | Repository name | |
-| `data` | | Path to JSON to generate badges. If empty, required data will be obtained from the GH API | |
-| `size` | | Badge size for README.md, px | 64 |
-| `dryrun` | | Generate badges, but skip pushing to git | |
+| Param | ENV alias | Description | Default |
+|----------|----------------|------------------------------------------------------------------------------------------|---------------|
+| `token` | `GITHUB_TOKEN` | Auth token | |
+| `user` | `GITHUB_USER` | Username | |
+| `repo` | `GITHUB_REPO` | Repository name to push badges | `{user/user}` |
+| `data` | | Path to JSON to generate badges. If empty, required data will be obtained from the GH API | |
+| `size` | | Badge size for README.md, px | 64 |
+| `dryrun` | | Generate badges, but skip pushing to git | |
## Contributing badges