diff --git a/.github/workflows/dev-cd.yml b/.github/workflows/dev-cd.yml index 999b142..381ac7f 100644 --- a/.github/workflows/dev-cd.yml +++ b/.github/workflows/dev-cd.yml @@ -2,10 +2,8 @@ name: CD for Dev on: - workflow_run: - workflows: ["CI for Dev"] - types: - - completed + push: + branches: [ "dev" ] permissions: contents: read diff --git a/.github/workflows/dev-ci.yml b/.github/workflows/dev-ci.yml index 9944678..e2f1511 100644 --- a/.github/workflows/dev-ci.yml +++ b/.github/workflows/dev-ci.yml @@ -1,12 +1,10 @@ # .github/workflows/dev-ci.yml -name: CI for Dev +name: CI-Dev on: - push: + pull_request: branches: [ "dev" ] -permissions: - contents: read jobs: build: diff --git a/.github/workflows/prod-cd.yml b/.github/workflows/prod-cd.yml index 7c11698..4711e16 100644 --- a/.github/workflows/prod-cd.yml +++ b/.github/workflows/prod-cd.yml @@ -2,10 +2,8 @@ name: CD for Prod on: - workflow_run: - workflows: ["CI for Prod"] - types: - - completed + push: + branches: [ "prod" ] permissions: contents: read diff --git a/.github/workflows/prod-ci.yml b/.github/workflows/prod-ci.yml index 6a62bdc..529d896 100644 --- a/.github/workflows/prod-ci.yml +++ b/.github/workflows/prod-ci.yml @@ -1,8 +1,8 @@ # .github/workflows/dev-ci.yml -name: CI for Prod +name: CI-Prod on: - push: + pull_request: branches: [ "prod" ] permissions: