Skip to content

Commit

Permalink
chore: optimize actions triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
loicguillois committed Jun 19, 2024
1 parent a57b8f4 commit 1727b93
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,21 @@ name: "CodeQL"
on:
push:
branches: [ main ]
paths:
- frontend/**
- queue/**
- server/**
- shared/**
- packages/**
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
paths:
- frontend/**
- queue/**
- server/**
- shared/**
- packages/**
schedule:
- cron: '21 21 * * 4'

Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Node.js CI

on: [push]
on:
push:
paths:
- frontend/**
- queue/**
- server/**
- shared/**
- packages/**

jobs:
build:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/review-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ on:
pull_request_target:
types: [opened, closed, synchronize, reopened]
branches: [main]

paths:
- frontend/**
- queue/**
- server/**
- shared/**
- packages/**
env:
CLEVER_SECRET: ${{ secrets.CLEVER_SECRET }}
CLEVER_TOKEN: ${{ secrets.CLEVER_TOKEN }}
Expand All @@ -29,7 +34,7 @@ jobs:
run: clever addon create redis-addon $PR_NAME-redis --org $ORGA_ID --plan s_mono --region par

deploy-api:
if: github.event.action == 'opened' || github.event.action == 'reopened'
if: (github.event.action == 'opened' || github.event.action == 'reopened')
needs: [deploy-addons]
runs-on: ubuntu-latest
environment:
Expand Down

0 comments on commit 1727b93

Please sign in to comment.