Skip to content

Commit

Permalink
Correct needs statements
Browse files Browse the repository at this point in the history
  • Loading branch information
mbyrdziak committed Jul 16, 2024
1 parent 92cdad2 commit 479b2b9
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: checkout
uses: actions/checkout@v4

- name: compile
- name: action
run: echo Compile step!

deploy-dev-migrations:
Expand All @@ -28,93 +28,93 @@ jobs:
name: dev
url: https://dev.sample.com
steps:
- name: compile
- name: action
run: echo Deploy dev migrations

deploy-dev:
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request') && github.ref == 'refs/heads/main'
needs: build
needs: deploy-dev-migrations
runs-on: ubuntu-latest
environment:
name: dev
url: https://dev.sample.com
steps:
- name: compile
- name: action
run: echo Deploy dev

deploy-dev-e2e:
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request') && github.ref == 'refs/heads/main'
needs: build
needs: deploy-dev
runs-on: ubuntu-latest
environment:
name: dev
url: https://dev.sample.com
steps:
- name: compile
- name: action
run: echo Deploy dev e2e

deploy-stage-migrations:
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request') && github.ref == 'refs/heads/main'
needs: build
needs: deploy-dev-e2e
runs-on: ubuntu-latest
environment:
name: stage
url: https://stage.sample.com
steps:
- name: compile
- name: action
run: echo Deploy stage migrations

deploy-stage:
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request') && github.ref == 'refs/heads/main'
needs: build
needs: deploy-stage-migrations
runs-on: ubuntu-latest
environment:
name: stage
url: https://stage.sample.com
steps:
- name: compile
- name: action
run: echo Deploy stage

deploy-stage-e2e:
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request') && github.ref == 'refs/heads/main'
needs: build
needs: deploy-stage
runs-on: ubuntu-latest
environment:
name: stage
url: https://stage.sample.com
steps:
- name: compile
- name: action
run: echo Deploy stage e2e

deploy-prod-migrations:
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request') && github.ref == 'refs/heads/main'
needs: build
needs: deploy-stage-e2e
runs-on: ubuntu-latest
environment:
name: prod
url: https://prod.sample.com
steps:
- name: compile
- name: action
run: echo Deploy prod migrations

deploy-prod:
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request') && github.ref == 'refs/heads/main'
needs: build
needs: deploy-prod-migrations
runs-on: ubuntu-latest
environment:
name: prod
url: https://prod.sample.com
steps:
- name: compile
- name: action
run: echo Deploy prod

deploy-prod-e2e:
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request') && github.ref == 'refs/heads/main'
needs: build
needs: deploy-prod
runs-on: ubuntu-latest
environment:
name: prod
url: https://prod.sample.com
steps:
- name: compile
- name: action
run: echo Deploy prod e2e

0 comments on commit 479b2b9

Please sign in to comment.