Skip to content

Commit

Permalink
ci(workflows): fix distribution tag logic
Browse files Browse the repository at this point in the history
in `continuous-deployment` workflow
  • Loading branch information
unicornware committed Sep 16, 2021
1 parent a7237c5 commit 0ce77dc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ jobs:
with:
script: |
let dtag = process.env.tag.split('-')[1] || ''
if (dtag && dtag.includes('.')) dtag = dtag.split('.')[0]
if (dtag) dtag = `--tag ${dtag}`
core.setOutput('args', `--tag ${dtag}`.trim())
core.setOutput('args', dtag.trim())
publish-package:
name: Publish package to GPR & NPM
needs: deployment-info
Expand Down

0 comments on commit 0ce77dc

Please sign in to comment.