From db6f3b7a9321158203c1657bae1b81c26802707b Mon Sep 17 00:00:00 2001 From: mrekucci Date: Thu, 4 Jul 2024 17:32:43 +0200 Subject: [PATCH] refactor: integrate infrastructure workflow into ci workflow (#193) --- .github/workflows/ci.yml | 9 +++++++++ .../workflows/{infrstructure.yml => infrastructure.yml} | 9 ++------- 2 files changed, 11 insertions(+), 7 deletions(-) rename .github/workflows/{infrstructure.yml => infrastructure.yml} (98%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d0390f38b..cc6ec6985 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -216,3 +216,12 @@ jobs: git diff --name-only --exit-code . || (echo "Generated files not in parity with the source files." && exit 1) git reset --hard HEAD working-directory: contracts-abi + + infrastructure: + uses: ./.github/workflows/infrastructure.yml + secrets: inherit + needs: + - commitlint + - go-modules + - foundry + - contracts diff --git a/.github/workflows/infrstructure.yml b/.github/workflows/infrastructure.yml similarity index 98% rename from .github/workflows/infrstructure.yml rename to .github/workflows/infrastructure.yml index 0069101c6..0b49965b4 100644 --- a/.github/workflows/infrstructure.yml +++ b/.github/workflows/infrastructure.yml @@ -1,11 +1,7 @@ name: infrastructure on: - workflow_run: - workflows: - - ci - types: - - completed + workflow_call: workflow_dispatch: inputs: profile: @@ -50,7 +46,6 @@ jobs: name: Setup and Test Nomad Cluster runs-on: ubuntu-22.04 timeout-minutes: 180 - if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }} steps: - name: Setup Environment @@ -104,7 +99,7 @@ jobs: uses: actions/checkout@v4 with: submodules: recursive - ref: ${{ github.event.workflow_run.head_branch }} + ref: ${{ github.event.workflow_run.head_branch || github.event.inputs.branch || github.ref }} - name: Setup Cache uses: actions/cache@v4