diff --git a/.github/workflows/push-main-backoffice.yml b/.github/workflows/push-main-backoffice.yml index 4698eb21..8ba63152 100644 --- a/.github/workflows/push-main-backoffice.yml +++ b/.github/workflows/push-main-backoffice.yml @@ -1,25 +1,24 @@ -name: Push main +name: Push main (backoffice) on: - push: - branches: [main] + workflow_call: -defaults: - run: - shell: bash jobs: lint: + name: Lint (backoffice) uses: ./.github/workflows/lint.yml with: ref: ${{ github.ref }} test: + name: Tests (backoffice) needs: lint uses: ./.github/workflows/test-backoffice.yml with: ref: ${{ github.ref }} secrets: inherit deploy: + name: Deploy (backoffice) needs: test runs-on: ubuntu-latest steps: diff --git a/.github/workflows/push-main-workflows.yml b/.github/workflows/push-main-workflows.yml index 6e25348f..80c3029b 100644 --- a/.github/workflows/push-main-workflows.yml +++ b/.github/workflows/push-main-workflows.yml @@ -1,25 +1,23 @@ -name: Push main +name: Push main (workflows) on: - push: - branches: [main] - -defaults: - run: - shell: bash + workflow_call: jobs: lint: + name: Lint (workflows) uses: ./.github/workflows/lint.yml with: ref: ${{ github.ref }} test: + name: Tests (workflows) needs: lint uses: ./.github/workflows/test-workflows.yml with: ref: ${{ github.ref }} secrets: inherit deploy: + name: Deploy (workflows) needs: test runs-on: ubuntu-latest steps: diff --git a/.github/workflows/push-main.yml b/.github/workflows/push-main.yml index e69de29b..2f3221a8 100644 --- a/.github/workflows/push-main.yml +++ b/.github/workflows/push-main.yml @@ -0,0 +1,22 @@ +name: Push main + +on: + push: + branches: [main] + +defaults: + run: + shell: bash + +jobs: + backoffice: + uses: ./.github/workflows/push-main-backoffice.yml + workflows: + uses: ./.github/workflows/push-main-workflows.yml + success: + name: All jobs passed + runs-on: ubuntu-latest + needs: [backoffice, workflows] + steps: + - name: All jobs passed + run: echo "All jobs passed"