Skip to content

Commit 06cf0d1

Browse files
committed
fix: configure GitHub Packages to trigger only with [release] tag
1 parent 24056b1 commit 06cf0d1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
name: Publish to NuGet
9191
runs-on: ubuntu-latest
9292
needs: build
93-
if: github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, '[release]')
93+
if: github.ref == 'refs/heads/main'
9494
permissions:
9595
contents: read
9696
packages: write
@@ -118,7 +118,7 @@ jobs:
118118
name: Publish to GitHub Packages
119119
runs-on: ubuntu-latest
120120
needs: build
121-
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'
121+
if: github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, '[release]')
122122
permissions:
123123
contents: read
124124
packages: write
@@ -146,7 +146,7 @@ jobs:
146146
name: Create GitHub Release
147147
runs-on: ubuntu-latest
148148
needs: [build, publish-nuget]
149-
if: github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, '[release]')
149+
if: github.ref == 'refs/heads/main'
150150
permissions:
151151
contents: write
152152
packages: read
@@ -258,6 +258,7 @@ jobs:
258258
permissions:
259259
contents: read
260260
security-events: write
261+
continue-on-error: true
261262

262263
steps:
263264
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)