feat: definindo output
This commit is contained in:
parent
403aeac049
commit
4ef0a2da9c
1 changed files with 9 additions and 2 deletions
|
@ -5,6 +5,13 @@ inputs:
|
|||
package_json_path:
|
||||
description: Path to package.json file
|
||||
default: package.json
|
||||
outputs:
|
||||
version_changed:
|
||||
description: "Whether the version changed"
|
||||
value: ${{ steps.check.outputs.version_changed }}
|
||||
package_version:
|
||||
description: "Current version from package.json"
|
||||
value: ${{ steps.check.outputs.package_version }}
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
|
@ -28,10 +35,10 @@ runs:
|
|||
echo "Versão anterior: $OLD_VERSION"
|
||||
echo "Versão atual: $NEW_VERSION"
|
||||
|
||||
echo "PACKAGE_VERSION=$NEW_VERSION" >> "$GITHUB_OUTPUT"
|
||||
|
||||
if [ "$OLD_VERSION" != "$NEW_VERSION" ]; then
|
||||
echo "version_changed=true" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "version_changed=false" >> "$GITHUB_OUTPUT"
|
||||
fi
|
||||
|
||||
echo "package_version=$NEW_VERSION" >> "$GITHUB_OUTPUT"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue