Skip to content

Commit

Permalink
fix(dev): Don't build piper for empty stepName (#223)
Browse files Browse the repository at this point in the history
* don't build piper for empty stepName

* lint

* fix line endings

---------

Co-authored-by: Gulom Alimov <[email protected]>
  • Loading branch information
Googlom and Gulom Alimov authored Oct 17, 2024
1 parent 09379a0 commit a21e55f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/piper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ async function preparePiperBinary (actionCfg: ActionConfiguration): Promise<void
let piperPath
if (isEnterpriseStep(actionCfg.stepName)) {
piperPath = await downloadPiperBinary(actionCfg.stepName, actionCfg.sapPiperVersion, actionCfg.gitHubEnterpriseApi, actionCfg.gitHubEnterpriseToken, actionCfg.sapPiperOwner, actionCfg.sapPiperRepo)
} else if (actionCfg.piperVersion.startsWith('devel:')) {
} else if (actionCfg.piperVersion.startsWith('devel:') && actionCfg.stepName !== '') {
piperPath = await buildPiperFromSource(actionCfg.piperVersion)
} else {
piperPath = await downloadPiperBinary(actionCfg.stepName, actionCfg.piperVersion, actionCfg.gitHubApi, actionCfg.gitHubToken, actionCfg.piperOwner, actionCfg.piperRepo)
Expand Down

0 comments on commit a21e55f

Please sign in to comment.