{"id":15758141,"url":"https://github.com/ahmadnassri/action-metadata","last_synced_at":"2025-03-13T17:34:41.613Z","repository":{"id":39629026,"uuid":"368563995","full_name":"ahmadnassri/action-metadata","owner":"ahmadnassri","description":"get all the repo and event metadata for use in Actions","archived":false,"fork":false,"pushed_at":"2023-09-13T21:26:55.000Z","size":70,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-05T09:42:26.305Z","etag":null,"topics":["actions","template"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahmadnassri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["ahmadnassri"]}},"created_at":"2021-05-18T14:38:41.000Z","updated_at":"2024-04-24T20:24:39.000Z","dependencies_parsed_at":"2023-02-19T09:16:07.824Z","dependency_job_id":null,"html_url":"https://github.com/ahmadnassri/action-metadata","commit_stats":{"total_commits":66,"total_committers":2,"mean_commits":33.0,"dds":0.06060606060606055,"last_synced_commit":"af8cb14211dd88b13e3e5666ec6dc6fa362bb0e6"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":"ahmadnassri/template-action-composite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadnassri%2Faction-metadata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadnassri%2Faction-metadata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadnassri%2Faction-metadata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmadnassri%2Faction-metadata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmadnassri","download_url":"https://codeload.github.com/ahmadnassri/action-metadata/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221395537,"owners_count":16812220,"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":["actions","template"],"created_at":"2024-10-04T09:42:49.185Z","updated_at":"2024-10-25T06:21:56.141Z","avatar_url":"https://github.com/ahmadnassri.png","language":"Shell","funding_links":["https://github.com/sponsors/ahmadnassri"],"categories":[],"sub_categories":[],"readme":"# Actions Metadata\n\nAll repo and event metadata for use in Actions workflows\n\n[![license][license-img]][license-url]\n[![test][test-img]][test-url]\n[![semantic][semantic-img]][semantic-url]\n\n## Why\n\nGitHub Actions already contains plenty of [context][] for use within Actions workflows.\n\nHowever, it's very limited, and does not include the entirety of the repository metadata.\n\n## Usage\n\n``` yaml\njobs:\n  job:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v2\n\n      - id: metadata\n        uses: ahmadnassri/action-metadata@v2\n\n      # simple usage example\n      - run: |\n        echo ${{ steps.metadata.outputs.repository_full_name }}\n        echo ${{ steps.metadata.outputs.owner_login }}\n        echo ${{ steps.metadata.outputs.template_repository_name }}\n\n      # legacy (v1) usage example: use the full JSON object\n      - run: |\n        echo ${{ fromJSON(steps.metadata.outputs.repository_json).full_name }}\n        echo ${{ fromJSON(steps.metadata.outputs.repository_json).owner.login }}\n        echo ${{ fromJSON(steps.metadata.outputs.repository_json).template_repository.name }}\n\n      # advanced usage example:\n      - run: |\n        echo ${{ steps.metadata.outputs.repository_json }}\" | jq '.full_name, .owner.login, .template_repository.name'\n```\n\n## Outputs\n\nThis action will output the following properties:\n\n\u003c!-- markdownlint-capture --\u003e\n\n\u003c!-- markdownlint-disable MD034 --\u003e\n\n| property                                    | example                                                    |\n|---------------------------------------------|------------------------------------------------------------|\n| `repository_json`                           | { ... } **full** JSON object of the current repository     |\n| `repository_id`                             | 368563995                                                  |\n| `repository_name`                           | action-metadata                                            |\n| `repository_full_name`                      | ahmadnassri/action-metadata                                |\n| `repository_private`                        | false                                                      |\n| `repository_html_url`                       | \u003chttps://github.com/ahmadnassri/action-metadata\u003e           |\n| `repository_description`                    | get all the repository metadata for use in Actions         |\n| `repository_fork`                           | false                                                      |\n| `repository_created_at`                     | 2021-05-18T14:38:41Z                                       |\n| `repository_updated_at`                     | 2021-11-13T06:48:56Z                                       |\n| `repository_pushed_at`                      | 2022-08-03T14:36:17Z                                       |\n| `repository_git_url`                        | git://github.com/ahmadnassri/action-metadata.git           |\n| `repository_ssh_url`                        | \u003cgit@github.com\u003e:ahmadnassri/action-metadata.git           |\n| `repository_clone_url`                      | \u003chttps://github.com/ahmadnassri/action-metadata.git\u003e       |\n| `repository_svn_url`                        | \u003chttps://github.com/ahmadnassri/action-metadata\u003e           |\n| `repository_homepage`                       | \u003chttps://ahmadnassri.com/projects/\u003e                        |\n| `repository_size`                           | 24                                                         |\n| `repository_stargazers_count`               | 1                                                          |\n| `repository_watchers_count`                 | 1                                                          |\n| `repository_language`                       | Shell                                                      |\n| `repository_has_issues`                     | true                                                       |\n| `repository_has_projects`                   | false                                                      |\n| `repository_has_downloads`                  | false                                                      |\n| `repository_has_wiki`                       | false                                                      |\n| `repository_has_pages`                      | false                                                      |\n| `repository_forks_count`                    | 0                                                          |\n| `repository_archived`                       | false                                                      |\n| `repository_disabled`                       | false                                                      |\n| `repository_open_issues_count`              | 5                                                          |\n| `repository_allow_forking`                  | true                                                       |\n| `repository_is_template`                    | false                                                      |\n| `repository_web_commit_signoff_required`    | false                                                      |\n| `repository_visibility`                     | public                                                     |\n| `repository_default_branch`                 | master                                                     |\n| `repository_allow_squash_merge`             | true                                                       |\n| `repository_allow_merge_commit`             | false                                                      |\n| `repository_allow_rebase_merge`             | true                                                       |\n| `repository_allow_auto_merge`               | true                                                       |\n| `repository_delete_branch_on_merge`         | true                                                       |\n| `repository_allow_update_branch`            | true                                                       |\n| `repository_use_squash_pr_title_as_default` | false                                                      |\n| `repository_network_count`                  | 0                                                          |\n| `repository_subscribers_count`              | 1                                                          |\n| `license_key`                               | mit                                                        |\n| `license_name`                              | MIT License                                                |\n| `license_spdx_id`                           | MIT                                                        |\n| `owner_id`                                  | 183195                                                     |\n| `owner_login`                               | ahmadnassri                                                |\n| `owner_avatar_url`                          | \u003chttps://avatars.githubusercontent.com/u/183195?v=4\u003e       |\n| `owner_html_url`                            | \u003chttps://github.com/ahmadnassri\u003e                           |\n| `owner_type`                                | User                                                       |\n| `template_repository_id`                    | 342988151                                                  |\n| `template_repository_name`                  | template-action-composite                                  |\n| `template_repository_full_name`             | ahmadnassri/template-action-composite                      |\n| `template_repository_html_url`              | \u003chttps://github.com/ahmadnassri/template-action-composite\u003e |\n\n\u003c!-- markdownlint-restore --\u003e\n\n  [context]: https://docs.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions\n\n----\n\u003e Author: [Ahmad Nassri](https://www.ahmadnassri.com/) \u0026bull;\n\u003e Twitter: [@AhmadNassri](https://twitter.com/AhmadNassri)\n\n[license-url]: LICENSE\n[license-img]: https://badgen.net/github/license/ahmadnassri/action-metadata\n\n[release-url]: https://github.com/ahmadnassri/action-metadata/releases\n[release-img]: https://badgen.net/github/release/ahmadnassri/action-metadata\n\n[test-url]: https://github.com/ahmadnassri/action-metadata/actions?query=workflow%3Apush\n[test-img]: https://github.com/ahmadnassri/action-metadata/workflows/push/badge.svg\n\n[semantic-url]: https://github.com/ahmadnassri/action-metadata/actions?query=workflow%3Arelease\n[semantic-img]: https://badgen.net/badge/📦/semantically%20released/blue\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmadnassri%2Faction-metadata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmadnassri%2Faction-metadata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmadnassri%2Faction-metadata/lists"}