Skip to content

Commit

Permalink
docs: add outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
helciofranco committed Mar 20, 2024
1 parent efef3e4 commit c87963d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 6 additions & 2 deletions update-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 8 additions & 0 deletions update-sdk/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit c87963d

Please sign in to comment.