Skip to content

Commit 0246dd2

Browse files
Publish-dry run on push for patch releases
1 parent 617fe58 commit 0246dd2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/rust.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Rust
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, release/**]
66
pull_request:
77

88
env:
@@ -12,7 +12,7 @@ jobs:
1212

1313
complete:
1414
if: always()
15-
needs: [fmt, rust-analyzer-compat, build-and-test, docs, publish-dry-run]
15+
needs: [fmt, rust-analyzer-compat, build-and-test, docs]
1616
runs-on: ubuntu-latest
1717
steps:
1818
- if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
@@ -61,7 +61,7 @@ jobs:
6161
- run: make doc
6262

6363
publish-dry-run:
64-
if: startsWith(github.head_ref, 'release/')
64+
if: github.event_name == 'push' || startsWith(github.head_ref, 'release/')
6565
strategy:
6666
matrix:
6767
sys:

0 commit comments

Comments
 (0)