{"id":20872393,"url":"https://github.com/romnn/query-git-action","last_synced_at":"2026-04-09T16:42:08.594Z","repository":{"id":110742739,"uuid":"329951225","full_name":"romnn/query-git-action","owner":"romnn","description":"query the state of your git repo.","archived":false,"fork":false,"pushed_at":"2024-03-07T18:58:27.000Z","size":249,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-19T08:43:40.003Z","etag":null,"topics":["actions","ci","git","version-management"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/romnn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-01-15T15:33:03.000Z","updated_at":"2023-04-21T11:17:22.000Z","dependencies_parsed_at":"2024-03-07T19:57:45.069Z","dependency_job_id":null,"html_url":"https://github.com/romnn/query-git-action","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romnn%2Fquery-git-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romnn%2Fquery-git-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romnn%2Fquery-git-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/romnn%2Fquery-git-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/romnn","download_url":"https://codeload.github.com/romnn/query-git-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243247818,"owners_count":20260747,"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","ci","git","version-management"],"created_at":"2024-11-18T06:19:01.611Z","updated_at":"2025-12-26T16:56:59.860Z","avatar_url":"https://github.com/romnn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## query git action\n\nGitHub action to query the state of your git repo.\n\n**Note:** Requires `git` to be installed on the runner.\n\n#### Usage\n\n```yaml\n# .github/workflows/ci.yml\nname: ci\non: [push, pull_request]\n\njobs:\n  ci:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v3\n\n    - name: query git repo\n      id: query\n      uses: romnn/query-git-action@main\n\n    - name: show output variables\n      run: |\n        echo \"${{ steps.query.outputs.git_commit }}\"\n        echo \"${{ steps.query.outputs.scm_status }}\"\n        echo \"${{ steps.query.outputs.tree_state }}\"\n        echo \"${{ steps.query.outputs.scm_revision }}\"\n        echo \"${{ steps.query.outputs.major_version }}\"\n        echo \"${{ steps.query.outputs.minor_version }}\"\n        echo \"${{ steps.query.outputs.docker_tag }}\"\n        echo \"${{ steps.query.outputs.semver_version }}\"\n        echo \"${{ steps.query.outputs.build_date }}\"\n        echo \"${{ steps.query.outputs.github_repo_user }}\"\n        echo \"${{ steps.query.outputs.github_repo_name }}\"\n```\n\n#### Development\n\n```bash\n# find a tagged commit\ngit show-ref --tags\n\n# use that commit during development\nGIT_COMMIT=\u003cTAGGED_COMMIT\u003e yarn run run\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromnn%2Fquery-git-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fromnn%2Fquery-git-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fromnn%2Fquery-git-action/lists"}