Skip to content

Commit

Permalink
fix: specify publishRootFolder only when input is provided (#146)
Browse files Browse the repository at this point in the history
* fix: specify publishRootFolder only when input is provided

* chore: shorten code with a shell expression

Co-authored-by: Augusto Moura <[email protected]>

---------

Co-authored-by: Augusto Moura <[email protected]>
  • Loading branch information
mkrl and augustobmoura authored Mar 27, 2023
1 parent 9c5b52f commit f66544e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .changeset/good-houses-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'davinci-github-actions': patch
---

---

### build-publish-alpha-package

- fixed a bug with an action failing when root-folder is not specified
7 changes: 3 additions & 4 deletions build-publish-alpha-package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,9 @@ runs:
git checkout .github/
yarn davinci-engine publish-package \
--alpha \
--outputVersion .version \
--branch "$BRANCH" \
--publishRootFolder $ROOT_FOLDER
--alpha \
--outputVersion .version \
--branch "$BRANCH" ${ROOT_FOLDER:+"--publishRootFolder=$ROOT_FOLDER"}
versions=$(cat .version)
[ -z "$versions" ] && exit 1
Expand Down

0 comments on commit f66544e

Please sign in to comment.