{"id":16632722,"url":"https://github.com/benwebber/get-ckan-package","last_synced_at":"2026-04-21T17:03:59.918Z","repository":{"id":149655579,"uuid":"497805372","full_name":"benwebber/get-ckan-package","owner":"benwebber","description":"GitHub action to download resources from a CKAN server","archived":false,"fork":false,"pushed_at":"2022-05-31T22:25:58.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-18T08:16:26.576Z","etag":null,"topics":["action","ckan","ckan-api","git-scraping","github-action"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benwebber.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-05-30T05:44:29.000Z","updated_at":"2022-05-31T22:27:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"a9811502-e4b3-48b8-81e5-90950b4588d8","html_url":"https://github.com/benwebber/get-ckan-package","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"587ebb9c23e3dab9d6ae8fe04d29180d955dea14"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benwebber%2Fget-ckan-package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benwebber%2Fget-ckan-package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benwebber%2Fget-ckan-package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benwebber%2Fget-ckan-package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benwebber","download_url":"https://codeload.github.com/benwebber/get-ckan-package/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243114584,"owners_count":20238626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["action","ckan","ckan-api","git-scraping","github-action"],"created_at":"2024-10-12T05:09:59.591Z","updated_at":"2026-04-21T17:03:59.886Z","avatar_url":"https://github.com/benwebber.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# get-ckan-package\n\nA [GitHub action](https://docs.github.com/en/actions) that downloads resources from a [CKAN](https://ckan.org/) package.\n\nThis action fetches:\n\n* the package metadata (as `${package_id}.json`)\n* all resources in the package, or a subset of resources specified by `resource_ids`\n\nThis action is particularly useful for [Git scraping](https://simonwillison.net/series/git-scraping/) data from a CKAN portal.\n\n## Usage\n\n```yaml\nsteps:\n  - uses: actions/checkout@v3\n\n  - uses: benwebber/get-ckan-package@v1\n    with:\n      url: https://ckan.example.org/\n      package_id: 1d2bf6b7-3961-444f-8f9b-2f227531f5de\n      output_dir: data/\n      resource_ids: '[\"d600fcdd-b148-4a65-84c5-13380348913f\",\"b8b0d9d0-ca2c-430a-9726-d8884f770c2e\"]'\n\n   - run: |-\n      git config user.name \"github-actions[bot]\"\n      git config user.email \"41898282+github-actions[bot]@users.noreply.github.com\"\n      git add data/\n      git commit -m 'Fetched new data' || exit 0\n      git push\n```\n\n## Inputs\n\n### `url`\n\n**Required.**\n\nThe CKAN server URL.\nDo not include the API path (`/api`).\n\n### `package_id`\n\n**Required.**\nThe CKAN package ID.\n\n### `output_dir`\n\nOptional.\nSpecify an output directory for the package metadata and resources.\n\n### `resource_ids`\n\nOptional.\nOnly download the resources with these IDs.\nIf not specified, download all resources in the package.\nThis input is a JSON array.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenwebber%2Fget-ckan-package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenwebber%2Fget-ckan-package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenwebber%2Fget-ckan-package/lists"}