Skip to content

Commit

Permalink
Update pipeline.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tcartwright authored Sep 5, 2021
1 parent f27e239 commit f496d22
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ jobs:
[int]$ival = $false
if ([boolean]::TryParse($val, [ref]$bval)) {
$env:create_release = $bval
$val = $bval.ToString().ToLower()
} elseif ([int32]::TryParse($val, [ref]$ival)) {
$env:create_release = [bool]($ival -eq 0)
$val = ([bool]($ival -eq 0)).ToString().ToLower()
} else {
throw "The value ($val) is not valid for [Create Release] and cannot be converted to a boolean. Please try again."
exit 1
$val = "false"
}
$env:create_release = $val
- name: SplitRepoName
shell: powershell
run: |
Expand Down Expand Up @@ -126,14 +126,14 @@ jobs:
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
if: ${{ github.ref == 'refs/heads/master' && env.create_release == true }}
if: ${{ github.ref == 'refs/heads/master' && env.create_release == "true" }}
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"

- name: Create Release
uses: ncipollo/release-action@v1
if: ${{ github.ref == 'refs/heads/master' && env.create_release == true }}
if: ${{ github.ref == 'refs/heads/master' && env.create_release == "true" }}
with:
artifacts: "${{ github.workspace }}\\$($env:REPO_NAME).zip"
artifacts: "${{ github.workspace }}\\${{ env.REPO_NAME }}.zip"
token: "${{ secrets.GITHUB_TOKEN }}"
tag: "${{ steps.tag_version.outputs.new_tag }}"

0 comments on commit f496d22

Please sign in to comment.