Skip to content

Commit

Permalink
fixed issue with workflow getting pr even when development was head
Browse files Browse the repository at this point in the history
  • Loading branch information
atteggiani committed Nov 10, 2023
1 parent 4bdc205 commit 8f662de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy_to_github_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
pr-preview-setup:
if: ${{github.event_name == 'pull_request'}}
if: ${{github.event_name == 'pull_request' && github.event.pull_request.head.ref != 'development'}}
concurrency:
group: pr-${{github.event.number}}
cancel-in-progress: true
Expand All @@ -30,8 +30,9 @@ jobs:
:---:
🛫 Deployment still ongoing.
🛫 Deployment still ongoing.<br>
Preview URL will be available at the end of the deployment.
For more information, please check the [Actions](https://github.com/ACCESS-Hive/access-hive.github.io/actions) tab.
"

Expand Down

0 comments on commit 8f662de

Please sign in to comment.