Skip to content

Commit

Permalink
fix: do not run release workflow when branch is created (#2216)
Browse files Browse the repository at this point in the history
  • Loading branch information
nedsalk committed May 10, 2024
1 parent 9bc893b commit c4307bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Ensure that the workflow runs only after a commit is pushed into the branch
# and not when the branch is created.
# This is to avoid running the workflow when a release/* branch is created.
if: github.event.before != '0000000000000000000000000000000000000000'

steps:
- name: Checkout
Expand Down

0 comments on commit c4307bd

Please sign in to comment.