Skip to content

Commit

Permalink
ci: Fix .NET workflow (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
tippmar-nr authored Jun 4, 2024
1 parent 148ee50 commit 4590efe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ name: .NET Agent CI
on:
workflow_dispatch: # run test job only
pull_request: # run check modified files / test jobs
release: # run check modified files / test / publish jobs
release: # run publish job only
types:
- published

Expand All @@ -37,6 +37,8 @@ jobs:
check-modified-files:
name: Check whether any Dotnet-related files were modified, skip the test job if not
uses: ./.github/workflows/check-modified-files.yml
# don't check for modified files on a release
if: github.event_name != 'release'
secrets: inherit
permissions:
contents: read
Expand Down Expand Up @@ -115,7 +117,7 @@ jobs:
runs-on: ubuntu-latest
needs: test
# only publish on a dotnet release
if: (github.event_name == 'release' && endsWith(github.ref, '_dotnet'))
if: github.event_name == 'release' && endsWith(github.ref, '_dotnet')

steps:
- name: Harden Runner
Expand Down

0 comments on commit 4590efe

Please sign in to comment.