diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f53acf5f2..ac5eb26b0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,7 +7,7 @@ on: branches: - 'master' pull_request: - branches: [ "master" ] + branches: [ "master", "develop" ] env: REGISTRY: ghcr.io @@ -18,8 +18,11 @@ jobs: runs-on: ubuntu-latest steps: + - name: "Validate branch" + if: ${{github.base_ref == 'master'}} + run: exit 1 - name: "Validate label" - if: | + if: | (contains(github.event.pull_request.labels.*.name, 'backend') || contains(github.event.pull_request.labels.*.name, 'data contract') || contains(github.event.pull_request.labels.*.name, 'frontend') || diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c405dea72..629120576 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -6,6 +6,7 @@ on: branches: - "master" - "*.*.*" + - "develop" types: - completed @@ -36,11 +37,11 @@ jobs: docker rm pe-testnet-api pe-testnet-indexer || true drop_db: - runs-on: ubuntu-latest + runs-on: ubuntu-latest - needs: stop + needs: stop - steps: + steps: - name: Checkout repository uses: actions/checkout@v4 with: