Skip to content

Commit

Permalink
Merge pull request #346 from pshenmic/feat/github-ci-fix
Browse files Browse the repository at this point in the history
Target branch rule for lint action
  • Loading branch information
pshenmic authored Nov 30, 2024
2 parents 60889e2 + 430ed46 commit 321cc6b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches:
- 'master'
pull_request:
branches: [ "master" ]
branches: [ "master", "develop" ]

env:
REGISTRY: ghcr.io
Expand All @@ -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') ||
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
branches:
- "master"
- "*.*.*"
- "develop"
types:
- completed

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 321cc6b

Please sign in to comment.