{"id":51137427,"url":"https://github.com/abstracta/jmeter-plugin-publish-action","last_synced_at":"2026-06-25T19:04:45.288Z","repository":{"id":294688833,"uuid":"891047325","full_name":"abstracta/jmeter-plugin-publish-action","owner":"abstracta","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-12T23:38:36.000Z","size":975,"stargazers_count":5,"open_issues_count":6,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-13T01:14:20.789Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/abstracta.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-19T16:26:22.000Z","updated_at":"2025-06-13T17:50:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"bd9124ae-8881-40de-b456-8111eb822612","html_url":"https://github.com/abstracta/jmeter-plugin-publish-action","commit_stats":null,"previous_names":["abstracta/jmeter-plugin-publish-action"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/abstracta/jmeter-plugin-publish-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abstracta%2Fjmeter-plugin-publish-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abstracta%2Fjmeter-plugin-publish-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abstracta%2Fjmeter-plugin-publish-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abstracta%2Fjmeter-plugin-publish-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abstracta","download_url":"https://codeload.github.com/abstracta/jmeter-plugin-publish-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abstracta%2Fjmeter-plugin-publish-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34788329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"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":[],"created_at":"2026-06-25T19:04:44.404Z","updated_at":"2026-06-25T19:04:45.283Z","avatar_url":"https://github.com/abstracta.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Publish JMeter Plugin Action\n\nThis GitHub Action automates the process of publishing a plugin to the\n[JMeter Plugins Manager repository](https://github.com/undera/jmeter-plugins).\n\nIt generates the required metadata from the latest GitHub release of your plugin and creates a pull\nrequest to the target repository.\n\n## Features\n\n- Automatically fetches the latest GitHub release of your plugin.\n- Generates a release object and updates the appropriate JSON file inside the repository.\n- Updates the target repository with the new release details.\n- Handles forking, branching, and creating a pull request to the upstream repository.\n\n## Inputs\n\nThe action requires the following inputs:\n\n| Input                                  | Description                                                                                                                                                                                                                | Required | Default                                        |\n| -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ---------------------------------------------- |\n| `token`                                | GitHub token used for authentication to perform API operations such as fetching assets and creating PRs.                                                                                                                   | Yes      | -                                              |\n| `forked-repository`                    | URL of your forked repository used to send the PR from.                                                                                                                                                                    | Yes      | -                                              |\n| `plugin-id`                            | Registered ID for identifying the plugin in the JMeter Plugins repository.                                                                                                                                                 | Yes      | -                                              |\n| `plugin-artifact-name`                 | Prefix of the plugin artifact name used to identify the JAR file in the GitHub release.                                                                                                                                    | Yes      | -                                              |\n| `changes`                              | Release note line describing the update.                                                                                                                                                                                   | Yes      | -                                              |\n| `ignore-dependencies`                  | Comma-separated prefixes of dependencies to ignore in the release metadata.                                                                                                                                                | No       | -                                              |\n| `upstream-repository`                  | URL of the target JMeter Plugins repository to send the PR to.                                                                                                                                                             | No       | `https://github.com/undera/jmeter-plugins.git` |\n| `artifact-version-extraction-patterns` | New line separated (YAML Multiline) of regular expression patterns to extract the version from artifact names. The first capturing group is treated as the version; the remaining part is used to infer the artifact name. | No       | -                                              |\n\n## Outputs\n\nThe action throws a single output:\n\n| Output         | Description                                                      |\n| -------------- | ---------------------------------------------------------------- |\n| `pull_request` | URL of the generated Pull Request into the `upstream-repository` |\n\n## Usage\n\nHere’s how to set up and use this action in your workflow:\n\n```yaml\nname: Publish to JMeter Plugins\n\non:\n  workflow_dispatch:\n    inputs:\n      changes:\n        description: 'Release notes for the update'\n        required: true\n\njobs:\n  publish:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Run Publish JMeter Plugin Action\n        id: publish-plugin\n        uses: abstracta/jmeter-plugin-publish-action@main\n        with:\n          forked-repository: https://github.com/Abstracta/jmeter-plugins.git\n          plugin-artifact-name: prefix-of-example-plugin-name\n          plugin-id: example-plugin-id\n          changes: ${{ inputs.changes }}\n          token: ${{ secrets.GITHUB_TOKEN }}\n          artifact-version-extraction-patterns: |\n            example-lib-(.*)\n\n      - name: Print Pull Request URL\n        run: echo ${{ steps.publish-plugin.outputs.pull_request }}\n```\n\n## How It Works\n\n1. **Input Validation**: The action ensures all required inputs are provided.\n1. **Repository Setup**: It checks out the forked repository and configures upstream and origin\n   remotes.\n1. **Metadata Generation**: Extracts version and library details from the latest GitHub release of\n   the plugin.\n1. **Update**: Locates the correct section using plugin-id and appends the new release details.\n1. **Branching and PR**: Creates a new release branch, commits the changes, and pushes the branch to\n   the forked repository. A pull request is then created to the upstream repository using the\n   `token`.\n\n## Notes\n\n- Ensure your plugin JAR and all required dependencies are correctly published in the GitHub release\n  of your repository.\n- Pull request is created in a draft mode working as a stagging area for manually validation\n- Use a\n  [GitHub PAT token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic)\n  with sufficient permissions for repository and PR actions.\n- Customize ignore-dependencies if some libraries should not be included in the release metadata.\n- Field `\"depends\"` of the release JSON object is grabbed from the latest release.\n  - Desire of updates requires a manual modification over the PR\n\n### In depth\n\n#### artifact-version-extraction-patterns\n\nThe action uses by default a lazy approach when it comes to generate the lib version and artifact\nname to be impacted in the JMeter Plugins repository definition.\n\nIn case your plugin has a library labeled with a nomenclature `library-0.3-jdk-8.jar` by default the\nplugin will consider as artifact name `library-0.3-jdk` and version `8` which isn't entirely correct\nfor all scenarios.\n\n\u003e In above example the artifact name is `library` and the version is `0.3-jdk-8`.\n\nThe property configuration for above scenario will be:\n\n```yaml\n      - name: Run Publish JMeter Plugin Action\n        id: publish-plugin\n        uses: abstracta/jmeter-plugin-publish-action@main\n        with:\n          . # other\n          . # properties\n          . # here\n          artifact-version-extraction-patterns: |\n            library-(.*)\n```\n\nIn that way the resultant release will be:\n\n```json\n{\n  \"1.0.1\": {\n    \"changes\": \"A new release\",\n    \"downloadUrl\": \"https://example.com/your-plugin.jar\",\n    \"libs\": {\n      \"library\u003e=0.3-jdk-8\": \"https://example.com/library-0.3-jdk-8.jar\"\n    }\n  }\n}\n```\n\n\u003e Instead of `\"library-0.3-jdk\u003e=8\"`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabstracta%2Fjmeter-plugin-publish-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabstracta%2Fjmeter-plugin-publish-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabstracta%2Fjmeter-plugin-publish-action/lists"}