Skip to content

Commit

Permalink
Fix manual triggers for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
pvshvp-oss committed Mar 11, 2024
1 parent 87afc18 commit a4df086
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/api_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@ jobs:
build_documentation_job:
name: 🛠 Build Documentation Job
if: |
github.event_name == 'push'
&& !startsWith(github.event.head_commit.message, 'style:')
&& !startsWith(github.event.head_commit.message, 'style(')
&& !startsWith(github.event.head_commit.message, 'chore:')
&& !startsWith(github.event.head_commit.message, 'chore(')
# github.ref == 'refs/heads/main'
(
github.event_name == 'push'
&& github.ref == 'refs/heads/main'
) || (
!startsWith(github.event.head_commit.message, 'style:')
&& !startsWith(github.event.head_commit.message, 'style(')
&& !startsWith(github.event.head_commit.message, 'chore:')
&& !startsWith(github.event.head_commit.message, 'chore(')
)
strategy:
fail-fast: true
matrix:
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/templates/multi_target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,15 @@ jobs:
some_job:
name: Some Job
if: |
github.event_name == 'push'
&& github.ref == 'refs/heads/main'
&& !startsWith(github.event.head_commit.message, 'style:')
&& !startsWith(github.event.head_commit.message, 'style(')
&& !startsWith(github.event.head_commit.message, 'chore:')
&& !startsWith(github.event.head_commit.message, 'chore(')
(
github.event_name == 'push'
&& github.ref == 'refs/heads/main'
) || (
!startsWith(github.event.head_commit.message, 'style:')
&& !startsWith(github.event.head_commit.message, 'style(')
&& !startsWith(github.event.head_commit.message, 'chore:')
&& !startsWith(github.event.head_commit.message, 'chore(')
)
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit a4df086

Please sign in to comment.