1- # Get latest releases versions from a specific WordPress.org plugin or from WordPress core
1+ # Get the latest release versions of a specific plugin from WordPress.org or GitHub repository
22
33This action provides the following functionality for GitHub Actions users:
44
5- - Get L-x release versions via GitHub job
5+ - Get L-x release versions from WordPress.org or GitHub API via GitHub Actions
66
77## Usage
88
@@ -21,12 +21,21 @@ jobs:
2121 name : Get Plugin Releases
2222 runs-on : ubuntu-latest
2323 steps :
24- - name : Get Release versions from WooCommerce
24+ - name : Get Release versions from WooCommerce (WordPress.org)
2525 id : wc-versions
2626 uses : woocommerce/grow/get-plugin-releases@actions-v2
2727 with :
2828 slug : woocommerce
2929
30+ - name : Get Release versions from WooCommerce (GitHub)
31+ id : wc-gh-versions
32+ uses : woocommerce/grow/get-plugin-releases@actions-v2
33+ with :
34+ source : github
35+ slug : woocommerce/woocommerce
36+ # Required if it's a private GitHub repository
37+ github-token : ${{ secrets.GITHUB_TOKEN }}
38+
3039 - name : Get Release versions from WordPress
3140 id : wp-versions
3241 uses : woocommerce/grow/get-plugin-releases@actions-v2
5665
5766 - name : Show the versions output
5867 run : |
59- echo "The versions WooCommerce are: ${{ steps.wc-versions.outputs.versions }}"
68+ echo "The versions WooCommerce (WPORG) are: ${{ steps.wc-versions.outputs.versions }}"
69+ echo "The versions WooCommerce (GitHub) are: ${{ steps.wc-gh-versions.outputs.versions }}"
6070 echo "The versions Wordpress are: ${{ steps.wp-versions.outputs.versions }}."
6171 echo "The versions GLA are: ${{ steps.gla-versions.outputs.versions }}."
6272 echo "The 4 versions WC RC are: ${{ steps.wc-versions-l3-rc.outputs.versions }}."
0 commit comments