Skip to content

Commit a661f93

Browse files
committed
CI: make publish job run only on tagged master
1 parent 1ea5aae commit a661f93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
publish_crate:
2121
runs-on: ubuntu-latest
2222
name: Publish Crate on New Tag
23-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
23+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && github.ref == 'refs/heads/master'
2424
steps:
25-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
2626
- uses: actions-rs/toolchain@v1
2727
with:
2828
toolchain: stable

0 commit comments

Comments
 (0)