Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove diff check #110

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 2 additions & 26 deletions .github/workflows/orchestration-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,10 @@ on:
types:
- closed

jobs:
diff:
if: ${{ github.event.pull_request.merged }}
name: Check for Changes
runs-on: ubuntu-latest
outputs:
backend: ${{ steps.backend.outputs.backend }}
infrastructure: ${{ steps.infrastructure.outputs.infrastructure }}
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check for changes in backend/
id: backend
run: echo "backend=$(git --no-pager diff --name-only origin/main backend/ | grep ".go\|.sum\|Dockerfile" | head -n 1)" >> $GITHUB_OUTPUT

- name: Check for changes in infrastructure/
id: infrastructure
run: echo "infrastructure=$(git --no-pager diff --name-only origin/main infrastructure/ | grep ".tf\|.tfvars" | head -n 1)" >> $GITHUB_OUTPUT

jobs:
backend:
if: ${{ github.event.pull_request.merged }}
name: Backend
needs: diff
if: contains(needs.diff.outputs.backend, 'backend/')
uses: ./.github/workflows/backend.yml
with:
environment: PROD
Expand All @@ -42,9 +20,7 @@ jobs:
infrastructure:
name: Infrastructure
needs:
- diff
- backend
if: contains(needs.diff.outputs.infrastructure, 'infrastructure/') || !cancelled()
uses: ./.github/workflows/infrastructure.yml
with:
environment: PROD
Expand Down