Skip to content

Commit

Permalink
fix: add extra echo
Browse files Browse the repository at this point in the history
  • Loading branch information
loekd authored Aug 21, 2024
1 parent 804d8de commit 68f7dab
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/NuGetCD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup master branch locally without switching current branch
run: git fetch origin master:master

Expand All @@ -36,17 +36,20 @@ jobs:
$diff = git diff master -- $csprojPath
if ($diff -match "<PackageReference Include=`"$PACKAGE_NAME`"") {
Write-Host "Package version has changed."
Write-Host "SF Package version has changed."
echo "changed=true" >> $env:GITHUB_ENV
} else {
Write-Host "No changes to package version."
Write-Host "No changes to SF package version."
echo "changed=false" >> $env:GITHUB_ENV
}
# Run echo
- name: Echo status
if: ${{ steps.check_version.outputs.sf_ver_changed == 'true' }}
run: echo "This run will create a new release on GitHub and Nuget"
- name: Echo status
if: ${{ steps.check_version.outputs.sf_ver_changed == 'false' }}
run: echo "This run will NOT create a new release on GitHub and Nuget"

# create version
- name: Bump version and push tag
Expand Down

0 comments on commit 68f7dab

Please sign in to comment.