Skip to content

Commit

Permalink
added protection to not run publish on pr
Browse files Browse the repository at this point in the history
  • Loading branch information
Bullrich committed Aug 13, 2024
1 parent 0f3ad61 commit 9fe7433
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
on:
pull_request:
push:
branches: [master]

name: Test Docs

Expand Down Expand Up @@ -83,6 +85,7 @@ jobs:
if-no-files-found: error

publish-rustdoc:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down

0 comments on commit 9fe7433

Please sign in to comment.