{"id":20247622,"url":"https://github.com/design4pro/actions-github-push-subdirectories","last_synced_at":"2026-05-02T11:42:23.485Z","repository":{"id":85778029,"uuid":"233266994","full_name":"design4pro/actions-github-push-subdirectories","owner":"design4pro","description":"Push subdirectories in a monorepo to separate, read-only GitHub repositories","archived":false,"fork":false,"pushed_at":"2022-05-02T10:53:42.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-03T15:48:13.820Z","etag":null,"topics":["actions","github"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/design4pro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-11T17:07:17.000Z","updated_at":"2022-05-02T10:53:45.000Z","dependencies_parsed_at":"2023-03-06T18:30:22.671Z","dependency_job_id":null,"html_url":"https://github.com/design4pro/actions-github-push-subdirectories","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/design4pro/actions-github-push-subdirectories","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/design4pro%2Factions-github-push-subdirectories","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/design4pro%2Factions-github-push-subdirectories/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/design4pro%2Factions-github-push-subdirectories/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/design4pro%2Factions-github-push-subdirectories/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/design4pro","download_url":"https://codeload.github.com/design4pro/actions-github-push-subdirectories/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/design4pro%2Factions-github-push-subdirectories/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32533344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T11:28:32.350Z","status":"ssl_error","status_checked_at":"2026-05-02T11:27:30.140Z","response_time":132,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","github"],"created_at":"2024-11-14T09:38:18.185Z","updated_at":"2026-05-02T11:42:23.470Z","avatar_url":"https://github.com/design4pro.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Push Subdirectories\n\nGitHub Action to publish subdirectories to separate GitHub repositories.\n\n## Why?\n\nWhen building Gatsby Themes with a monorepo it's common to need to\nbe able to develop your corresponding starters in the same repo as\nwell. This allows you to automatically push your starters to their\nown repo so they can be used with `gatsby new`.\n\n## Usage\n\n```yml\nname: Publish Starters\non: push\njobs:\n  master:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@master\n      - name: publish:starters\n        uses: design4pro/actions-github-push-subdirectories@master\n        env:\n          GH_TOKEN: ${{ secrets.GH_TOKEN }}\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n        with:\n          args: starters design4pro\n```\n\nThe `GITHUB_TOKEN` will automatically be defined, the `GH_TOKEN` needs to be set in the `Secrets` section of your repository options. You can retrieve the `GH_TOKEN` [here](https://github.com/settings/tokens) (set the `repo` permission).\n\nThe action accepts three arguments - the first two are mandatory, the third (key from `package.json`), four (GitHub email) and five branch name, are optional.\n\n1. Name of the folder that contains your examples. Even if you only have one example currently it also should be placed inside its own folder (e.g. `starters/foo-bar`) as the script will read all folders inside the examples.\n2. GitHub username\n3. Repository name of the respective example. By default the `name` key from the example's `package.json` is used, e.g. the `name` of your example is `gatsby-starter-foobar`, then the script will try to push to `github.com/USERNAME/gatsby-starter-foobar`.\n4. Branch name (optional) - `main` default\n5. GitHub email (optional)\n\n### Custom starter names\n\nYou could define the key `starter-name` in your example's `package.json`, like:\n\n```json\n{\n  \"starter-name\": \"gatsby-starter-foobar\",\n}\n```\n\nUse the action with the third argument now:\n\n```yml\nargs: starters design4pro starter-name master\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesign4pro%2Factions-github-push-subdirectories","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdesign4pro%2Factions-github-push-subdirectories","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdesign4pro%2Factions-github-push-subdirectories/lists"}