Skip to content

Commit

Permalink
cicd: connect workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
2hy2on committed Sep 1, 2024
1 parent dae5571 commit 9b0655e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/dev-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
name: CD for Dev

on:
workflow_run:
workflows: ["CI-Dev"]
types:
- success
push:
branches: [ "dev" ]

permissions:
contents: read
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/dev-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
name: CI-Dev

on:
push:
pull_request:
branches: [ "dev" ]

permissions:
contents: read

jobs:
build:
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/prod-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
name: CD for Prod

on:
workflow_run:
workflows: ["CI-Prod"]
types:
- success
push:
branches: [ "prod" ]

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prod-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: CI-Prod

on:
push:
pull_request:
branches: [ "prod" ]

permissions:
Expand Down

0 comments on commit 9b0655e

Please sign in to comment.