Skip to content

Commit c4307bd

Browse files
authored
fix: do not run release workflow when branch is created (#2216)
1 parent 9bc893b commit c4307bd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ jobs:
1616
environment:
1717
name: github-pages
1818
url: ${{ steps.deployment.outputs.page_url }}
19+
# Ensure that the workflow runs only after a commit is pushed into the branch
20+
# and not when the branch is created.
21+
# This is to avoid running the workflow when a release/* branch is created.
22+
if: github.event.before != '0000000000000000000000000000000000000000'
1923

2024
steps:
2125
- name: Checkout

0 commit comments

Comments
 (0)