{"id":19061265,"url":"https://github.com/madhead/read-java-properties","last_synced_at":"2025-08-02T11:05:58.865Z","repository":{"id":40450455,"uuid":"350112342","full_name":"madhead/read-java-properties","owner":"madhead","description":"GitHub Action to read values from Java's .properties files","archived":false,"fork":false,"pushed_at":"2024-11-28T03:41:13.000Z","size":208,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-16T05:51:12.343Z","etag":null,"topics":["actions","github-actions","java-properties","properties","properties-parser","utils"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/madhead.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.adoc","code_of_conduct":".github/CODE_OF_CONDUCT.md","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,"zenodo":null}},"created_at":"2021-03-21T20:34:51.000Z","updated_at":"2024-10-20T22:05:21.000Z","dependencies_parsed_at":"2024-07-15T21:27:28.029Z","dependency_job_id":"8f5d8906-533a-4bff-8232-9d7ecfc22661","html_url":"https://github.com/madhead/read-java-properties","commit_stats":{"total_commits":33,"total_committers":2,"mean_commits":16.5,"dds":0.09090909090909094,"last_synced_commit":"a3a4cbaf8557d3f1ac419298e76347f7c640f850"},"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"purl":"pkg:github/madhead/read-java-properties","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhead%2Fread-java-properties","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhead%2Fread-java-properties/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhead%2Fread-java-properties/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhead%2Fread-java-properties/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madhead","download_url":"https://codeload.github.com/madhead/read-java-properties/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhead%2Fread-java-properties/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268378552,"owners_count":24240895,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-actions","java-properties","properties","properties-parser","utils"],"created_at":"2024-11-09T00:19:44.326Z","updated_at":"2025-08-02T11:05:58.789Z","avatar_url":"https://github.com/madhead.png","language":"Kotlin","readme":"# madhead/read-java-properties\n\nGitHub Action to read values from Java's `.properties` files.\n\n## Usage\n\nReturning a single property is as simple as:\n\n```yaml\n- uses: madhead/read-java-properties@latest\n  id: version\n  with:\n    file: gradle.properties\n    property: version\n    default: 0.0.1\n\n- run: echo ${{ steps.version.outputs.value }} # Project's version from gradle.properties or 0.0.1 if it is not defined there\n```\n\nAlternatively, you could return all the values from the `.properties` file by employing the `all` flag:\n\n```yaml\n- uses: madhead/read-java-properties@latest\n  id: all\n  with:\n    file: gradle.properties\n    all: true\n\n- run: echo ${{ steps.all.outputs.version }} # Project's version from gradle.properties\n- run: echo ${{ steps.all.outputs.groupId }} # Project's groupID from gradle.properties\n  …\n```\n\nTo see the list of available versions of this action (`latest` in the example above), navigate to the [Releases \u0026 Tags](https://github.com/madhead/read-java-properties/tags) page of this repo.\nWhenever a new version is released, corresponding tags are created / updated.\n`latest` tag always points to the latest release.\n`master` label could also be used, being a synonym to `latest`.\nThere are also `$major` and `$major.$minor` tags pointing to the latest matching version (i.e. tag `1` always points to the latest `1.x` version, and tag `1.1` — to the latest `1.1.x` version).\n\nTo see this action… in action… check its integration test in [`test.yml`](.github/workflows/test.yml).\n\n### ERROR: `JAVA_HOME` is set to an invalid directory\n\nNote, that due to the environment variables \"leaking\" from the workflow into the Docker container actions, if your workflow defines a `JAVA_HOME` variable, this action would fail.\n\nTry not to set `JAVA_HOME` before running this action until this \"leakage\" is \"fixed\" by the GitHub Actions team.\nWhich might never happen and be an unpleasant \"feature\" of GitHub Actions.\n\nRead more about this issue in [#28](https://github.com/madhead/read-java-properties/issues/28) and check the [minimal reproducible example](https://github.com/madhead/actions-env-leak).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadhead%2Fread-java-properties","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadhead%2Fread-java-properties","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadhead%2Fread-java-properties/lists"}