Skip to content

Commit

Permalink
Update compile_upload.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderdewit authored Oct 9, 2024
1 parent cebecbb commit a4bbf67
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/compile_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
run: |
git config --global user.name "GitHub Action"
git config --global user.email "[email protected]"
if [ "${{ env.packages_updated }}" == "true" ]; then
if [ "${{ env.PACKAGES_UPDATED }}" == "true" ]; then
git add .
git commit -m "Update NuGet packages"
git push
Expand All @@ -54,14 +54,15 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Restore dependencies
if: ${{ env.PACKAGES_UPDATED == 'true' }} # Use outputs for the condition
run: dotnet restore

- name: Build
if: ${{ env.packages_updated == 'true' }} # Use outputs for the condition
if: ${{ env.PACKAGES_UPDATED == 'true' }} # Use outputs for the condition
run: dotnet build --no-restore

- name: Test
if: ${{ env.packages_updated == 'true' }} # Use outputs for the condition
if: ${{ env.PACKAGES_UPDATED == 'true' }} # Use outputs for the condition
run: dotnet test --no-build --verbosity normal

publish:
Expand Down

0 comments on commit a4bbf67

Please sign in to comment.