From c87963da141f0e149761ddef218998d3c9bf4c2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9lcio=20Franco?= Date: Wed, 20 Mar 2024 17:03:26 -0400 Subject: [PATCH] docs: add outputs --- update-sdk/README.md | 8 ++++++-- update-sdk/action.yaml | 8 ++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/update-sdk/README.md b/update-sdk/README.md index d2f5f0c..65da224 100644 --- a/update-sdk/README.md +++ b/update-sdk/README.md @@ -28,13 +28,17 @@ A github action to update the SDK packages. | ------------ | ---------------------------------------------------------- | -------------------------- | | repository | Github Repository | `${{ github.repository }}` | | changeset | If your repository uses changesets, set this to true | `false` | -| branch | The branch that will be used to create the PR | `main` | +| branch | The branch that will be used as base to create the PR | `main` | | packages | Packages to update (multiline input or comma separated) | '' | | npm-tag | NPM tag (e.g. latest or next) | `latest` | ### Outputs -No outputs defined +| Name | Description | +| ------------ | ---------------------------------------------------------- | +| has-updates | If there are updates | +| branch | The branch with the updated packages | +| pr | The PR url with the updated packages | ## License diff --git a/update-sdk/action.yaml b/update-sdk/action.yaml index 03dc57d..f1c3bbb 100644 --- a/update-sdk/action.yaml +++ b/update-sdk/action.yaml @@ -18,6 +18,14 @@ inputs: description: "Packages to update" required: true +outputs: + has-updates: + description: "If there are updates" + branch: + description: "The branch with the updated packages" + pr: + description: "The PR url with the updated packages" + runs: using: "node20" main: "dist/index.js" \ No newline at end of file