Update deploy to gh pages condition

This commit is contained in:
Diogo Sousa
2024-03-14 10:43:22 +00:00
parent 125bd56d5e
commit 871c7bf9a9
2 changed files with 6 additions and 2 deletions

View File

@@ -5,10 +5,11 @@ on:
branches:
- main
- release/*
- "docs/*"
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- develop
- main
- "docs/*"
concurrency:
@@ -102,7 +103,7 @@ jobs:
(startsWith(github.ref, 'refs/heads/main')) ||
(github.event_name == 'pull_request' &&
github.event.pull_request.merged == true &&
github.event.pull_request.base.ref == 'develop' &&
github.event.pull_request.base.ref == 'main' &&
startsWith(github.head_ref, 'docs/'))
with:
github_token: ${{ secrets.DEPLOY_TOKEN }}