Skip to content

Commit

Permalink
ci: multiple push events
Browse files Browse the repository at this point in the history
Signed-off-by: Quentin Guidée <[email protected]>
  • Loading branch information
quentinguidee committed Mar 4, 2024
1 parent 65f9f7c commit 107425d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
pull_request:
paths:
- '.github/workflows/**.yml'

push:
branches:
- main
Expand All @@ -22,5 +23,5 @@ jobs:
run: |
echo "::add-matcher::.github/actionlint-matcher.json"
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
./actionlint -color
./actionlint -color -ignore 'key ".+" is duplicated in "on" section'
shell: bash
10 changes: 6 additions & 4 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,26 @@
name: Client (dev)

on:
push:
pull_request:
branches:
- main
paths:
- "client/**"
- "packages/**"
- ".github/workflows/client-dev.yml"
tags:
- "v*"

pull_request:
push:
branches:
- main
paths:
- "client/**"
- "packages/**"
- ".github/workflows/client-dev.yml"

push:
tags:
- "v*"

jobs:
build:
name: Build and push container
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
name: Docs

on:
push:
branches:
- main
pull_request:
paths:
- '.github/workflows/docs.yml'
- 'docs/**'
- 'packages/**'
pull_request:

push:
branches:
- main
paths:
- '.github/workflows/docs.yml'
- 'docs/**'
- 'packages/**'

push:
tags:
- "v*"

jobs:
build_deploy:
name: ${{ github.ref == 'refs/heads/main' && 'Build and deploy' || 'Build' }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ on:
paths:
- '.github/workflows/server.yml'
- 'server/**'

push:
branches:
- main
paths:
- '.github/workflows/server.yml'
- 'server/**'

push:
tags:
- "v*"

Expand Down

0 comments on commit 107425d

Please sign in to comment.