Skip to content

Add support to the get-plugin-releases action for fetching releases from GitHub#190

Merged
eason9487 merged 8 commits intotrunkfrom
add/actions-get-plugin-releases-from-github
Jan 2, 2026
Merged

Add support to the get-plugin-releases action for fetching releases from GitHub#190
eason9487 merged 8 commits intotrunkfrom
add/actions-get-plugin-releases-from-github

Conversation

@eason9487
Copy link
Member

Changes proposed in this Pull Request:

Due to occasional inconsistencies between WooCommerce releases on WPORG and GitHub, the GitHub Actions workflows that obtain versions and subsequently clone them from GitHub have been problematic. This PR adds support to the get-plugin-releases action for fetching releases from GitHub.

For the get-plugin-releases action:

  • Adjust it to make testing easier.
  • Add tests.
  • Refactor the get-plugin-releases action to use semver library.
  • Simplify the I/O process.
  • Separate the logic for data normalization.
  • Further simplify and unify the parsePluginVersions function.
  • Add support for fetching releases from GitHub.

Detailed test instructions:

Checked that the tests can pass

  1. cd packages/github-actions
  2. npm run test

Verified the new function

Confirmed that the test build works with a test build and woocommerce/google-listings-and-ads#3189.

See the revision: woocommerce/google-listings-and-ads@a054639

@eason9487 eason9487 self-assigned this Jan 2, 2026
Base automatically changed from update/bump-actions-npm-deps to trunk January 2, 2026 08:44
@eason9487 eason9487 merged commit 8cc34c4 into trunk Jan 2, 2026
2 checks passed
@eason9487 eason9487 deleted the add/actions-get-plugin-releases-from-github branch January 2, 2026 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant