From ab8bfd30538954113f41e14c78534cdbf7efc430 Mon Sep 17 00:00:00 2001 From: Harris Tzovanakis Date: Fri, 26 Jul 2024 10:04:33 +0200 Subject: [PATCH] gh-actions: merge actions --- .github/workflows/push-main-backoffice.yml | 11 +++++------ .github/workflows/push-main-workflows.yml | 12 +++++------- .github/workflows/push-main.yml | 22 ++++++++++++++++++++++ 3 files changed, 32 insertions(+), 13 deletions(-) diff --git a/.github/workflows/push-main-backoffice.yml b/.github/workflows/push-main-backoffice.yml index 4698eb21a..8ba63152d 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 6e25348fa..80c3029b7 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 e69de29bb..2f3221a8e 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"